Skip to content

Commit

Permalink
edit_buffer: use :up instead of :w
Browse files Browse the repository at this point in the history
This will only write the buffer file, if the buffer has changed.
  • Loading branch information
blueyed committed May 11, 2015
1 parent c3ddfb6 commit 04c2dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jedi_vim.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def edit_buffer(path):
echo_highlight('Cannot open a new buffer, use `:set hidden` or save your buffer')
return False
else:
vim_command('w')
vim_command('update')
vim_command('edit %s' % escape_file_path(path))
fix_buffer_options()
return True
Expand Down

0 comments on commit 04c2dde

Please sign in to comment.