Don't open the quickfix window after fixit

This commit is contained in:
Ben Jackson 2018-02-22 22:05:38 +00:00
parent d27563d2f1
commit dc52b73048
3 changed files with 4 additions and 16 deletions

View File

@ -1766,10 +1766,10 @@ manually saved. A confirmation dialog is opened prior to doing this to remind
you that this is about to happen.
Once the modifications have been made, the quickfix list (see `:help quickfix`)
is opened and populated with the locations of all modifications. This can be
used to review all automatic changes made. Typically, use the `CTRL-W
<enter>` combination to open the selected file in a new split. It is possible
to customize how the quickfix window is opened by using [the `YcmQuickFixOpened`
is populated with the locations of all modifications. This can be used to review
all automatic changes made by using `:copen`. Typically, use the `CTRL-W
<enter>` combination to open the selected file in a new split. It is possible to
customize how the quickfix window is opened by using [the `YcmQuickFixOpened`
autocommand](#the-ycmquickfixopened-autocommand).
The buffers are *not* saved automatically. That is, you must save the modified

View File

@ -719,11 +719,6 @@ def ReplaceChunks_SingleFile_Open_test( vim_command,
'type': 'F'
} ] ) ) ),
] )
vim_command.assert_has_exact_calls( [
call( 'botright copen' ),
call( 'silent! wincmd p' )
] )
set_fitting_height.assert_called_once_with()
# And it is ReplaceChunks that prints the message showing the number of
# changes
@ -817,10 +812,7 @@ def ReplaceChunks_SingleFile_NotOpen_test( vim_command,
vim_command.assert_has_exact_calls( [
call( 'lclose' ),
call( 'hide' ),
call( 'botright copen' ),
call( 'silent! wincmd p' )
] )
set_fitting_height.assert_called_once_with()
# And update the quickfix list
vim_eval.assert_has_exact_calls( [
@ -1202,10 +1194,7 @@ def ReplaceChunks_MultiFile_Open_test( vim_command,
vim_command.assert_has_exact_calls( [
call( 'lclose' ),
call( 'hide' ),
call( 'botright copen' ),
call( 'silent! wincmd p' )
] )
set_fitting_height.assert_called_once_with()
# And update the quickfix list with each entry
vim_eval.assert_has_exact_calls( [

View File

@ -832,7 +832,6 @@ def ReplaceChunks( chunks, silent=False ):
if not silent:
if locations:
SetQuickFixList( locations )
OpenQuickFixList()
PostVimMessage( 'Applied {0} changes'.format( len( chunks ) ),
warning = False )