diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-06 01:15:37 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-06 01:15:37 +0200 |
commit | f795c3ce7cfec5dec5b4389ee926b9c8f0cacdf8 (patch) | |
tree | 75a8cf868c907411ddd075756d342ce1cc0abfd7 | |
parent | 5861dc596687b48e5817f944cdcffca50592fb38 (diff) | |
download | rneovim-f795c3ce7cfec5dec5b4389ee926b9c8f0cacdf8.tar.gz rneovim-f795c3ce7cfec5dec5b4389ee926b9c8f0cacdf8.tar.bz2 rneovim-f795c3ce7cfec5dec5b4389ee926b9c8f0cacdf8.zip |
ex_getln.c: Fix PVS/V519: variable assigned twice
-rw-r--r-- | src/nvim/ex_getln.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 3eb66cd2dc..2c828be083 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -626,6 +626,7 @@ static int command_line_execute(VimState *state, int key) // Entered command line, move it up cmdline_row--; redrawcmd(); + wild_menu_showing = 0; } else if (save_p_ls != -1) { // restore 'laststatus' and 'winminheight' p_ls = save_p_ls; @@ -636,13 +637,13 @@ static int command_line_execute(VimState *state, int key) restore_cmdline(&s->save_ccline); redrawcmd(); save_p_ls = -1; + wild_menu_showing = 0; } else { win_redraw_last_status(topframe); wild_menu_showing = 0; // must be before redraw_statuslines #8385 redraw_statuslines(); } KeyTyped = skt; - wild_menu_showing = 0; if (ccline.input_fn) { RedrawingDisabled = old_RedrawingDisabled; } |