From fda5c7e6c6849d212ea2eee90344b36d0ba9f185 Mon Sep 17 00:00:00 2001 From: Andrea Cedraro Date: Tue, 31 Jan 2017 21:35:34 +0100 Subject: [PATCH] Use bang version of `normal` Fixes #2519 --- python/ycm/tests/vimsupport_test.py | 2 +- python/ycm/vimsupport.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ycm/tests/vimsupport_test.py b/python/ycm/tests/vimsupport_test.py index 36e747df..3009d9f9 100644 --- a/python/ycm/tests/vimsupport_test.py +++ b/python/ycm/tests/vimsupport_test.py @@ -1374,7 +1374,7 @@ def OpenFilename_test( vim_current, vim_command ): call( '12split {0}'.format( __file__ ) ), call( "exec " "'au BufEnter :silent! checktime {0}'".format( __file__ ) ), - call( 'silent! normal G zz' ), + call( 'silent! normal! Gzz' ), call( 'silent! wincmd p' ) ] ) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 10957dd1..f24af47a 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -1034,4 +1034,4 @@ def _SetUpLoadedBuffer( command, filename, fix, position, watch ): .format( filename ) ) if position == 'end': - vim.command( 'silent! normal G zz' ) + vim.command( 'silent! normal! Gzz' )