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 4, 2015
1 parent 4555eda commit f3d3b89
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 @@ -546,7 +546,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()

Expand Down

0 comments on commit f3d3b89

Please sign in to comment.