Skip to content

Commit 04c2dde

Browse files
committed
edit_buffer: use :up instead of :w
This will only write the buffer file, if the buffer has changed.
1 parent c3ddfb6 commit 04c2dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jedi_vim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def edit_buffer(path):
555555
echo_highlight('Cannot open a new buffer, use `:set hidden` or save your buffer')
556556
return False
557557
else:
558-
vim_command('w')
558+
vim_command('update')
559559
vim_command('edit %s' % escape_file_path(path))
560560
fix_buffer_options()
561561
return True

0 commit comments

Comments
 (0)