1
0
forked from aniani/vim

patch 8.2.4339: CTRL-A does not work properly with the cmdline popup menu

Problem:    CTRL-A does not work properly with the cmdline popup menu.
Solution:   Fix issues with CTRL-A.  Add more tests for the cmdline popup
            menu.  Remove TermWait() before VeriryScreenDump().  Refactor the
            cmdline popup code. (Yegappan Lakshmanan, closes #9735)
This commit is contained in:
Yegappan Lakshmanan
2022-02-10 19:52:10 +00:00
committed by Bram Moolenaar
parent 74a0a5b26d
commit 560dff49c0
22 changed files with 215 additions and 138 deletions

View File

@@ -117,6 +117,7 @@ pum_display(
// can decide when to reposition the popup menu.
pum_window = curwin;
if (State == CMDLINE)
// cmdline completion popup menu
pum_win_row = cmdline_row;
else
pum_win_row = curwin->w_wrow + W_WINROW(curwin);
@@ -220,6 +221,7 @@ pum_display(
// Calculate column
#ifdef FEAT_WILDMENU
if (State == CMDLINE)
// cmdline completion popup menu
cursor_col = cmdline_compl_startcol();
else
#endif