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 Jun 21, 2015
1 parent 491d7c9 commit a096b6e
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 @@ -569,7 +569,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 a096b6e

Please sign in to comment.