Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64addda

Browse files
committed
go to bottom of shell buffer on update
This will happen either because we executed an ipython command, or because we just manually updated the vim-ipython buffer via something like <leader>s
1 parent 6087a16 commit 64addda

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ftplugin/python/ipy.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ def update_subchannel_msgs(debug=False, force=False):
386386
# make a newline so we can just start typing there
387387
if b[-1] != '':
388388
b.append([''])
389-
vim.command('normal G') # go to the end of the file
389+
if update_occured or force:
390+
vim.command('normal G') # go to the end of the file
390391
if not startedin_vimipython:
391392
vim.command('normal p') # go back to where you were
392393
return update_occured

0 commit comments

Comments
 (0)