Auto merge of #2520 - vheon:fix-togglelogs, r=micbou
Use bang version of `normal` Fixes #2519 # PR Prelude Thank you for working on YCM! :) **Please complete these steps and check these boxes (by putting an `x` inside the brackets) _before_ filing your PR:** - [x] I have read and understood YCM's [CONTRIBUTING][cont] document. - [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document. - [x] I have included tests for the changes in my PR. If not, I have included a rationale for why I haven't. - [x] **I understand my PR may be closed if it becomes obvious I didn't actually perform all of these steps.** # Why this change is necessary and useful [Please explain **in detail** why the changes in this PR are needed.] [cont]: https://github.com/Valloric/YouCompleteMe/blob/master/CONTRIBUTING.md [code]: https://github.com/Valloric/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2520) <!-- Reviewable:end -->
This commit is contained in:
commit
68d78719a4
@ -1374,7 +1374,7 @@ def OpenFilename_test( vim_current, vim_command ):
|
|||||||
call( '12split {0}'.format( __file__ ) ),
|
call( '12split {0}'.format( __file__ ) ),
|
||||||
call( "exec "
|
call( "exec "
|
||||||
"'au BufEnter <buffer> :silent! checktime {0}'".format( __file__ ) ),
|
"'au BufEnter <buffer> :silent! checktime {0}'".format( __file__ ) ),
|
||||||
call( 'silent! normal G zz' ),
|
call( 'silent! normal! Gzz' ),
|
||||||
call( 'silent! wincmd p' )
|
call( 'silent! wincmd p' )
|
||||||
] )
|
] )
|
||||||
|
|
||||||
|
@ -1034,4 +1034,4 @@ def _SetUpLoadedBuffer( command, filename, fix, position, watch ):
|
|||||||
.format( filename ) )
|
.format( filename ) )
|
||||||
|
|
||||||
if position == 'end':
|
if position == 'end':
|
||||||
vim.command( 'silent! normal G zz' )
|
vim.command( 'silent! normal! Gzz' )
|
||||||
|
Loading…
Reference in New Issue
Block a user