1
0
forked from aniani/vim

patch 8.2.4334: command line popup menu not positioned correctly

Problem:    Command line popup menu not positioned correctly.
Solution:   Also use vim_strsize() on the existing text. (Naruhiko Nishino,
            closes #9727)
This commit is contained in:
rbtnn
2022-02-09 11:55:47 +00:00
committed by Bram Moolenaar
parent b6a138eb33
commit 68cc2b8a37
4 changed files with 24 additions and 1 deletions

View File

@@ -622,7 +622,7 @@ showmatches(expand_T *xp, int wildmenu UNUSED)
compl_match_array[i].pum_extra = NULL;
compl_match_array[i].pum_kind = NULL;
}
compl_startcol = ccline->cmdpos + 1;
compl_startcol = vim_strsize(ccline->cmdbuff) + 1;
columns = vim_strsize(xp->xp_pattern);
if (showtail)
{