diff options
author | rbtnn <naru123456789@gmail.com> | 2022-02-09 11:55:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-09 11:55:47 +0000 |
commit | 68cc2b8a37197872e737fb61244069e13b7227a2 (patch) | |
tree | 8e349fcf2007d03dec30632bd318568dfe4c26fd /src/cmdexpand.c | |
parent | b6a138eb334621f60c5891d035f80f398d59dbd3 (diff) | |
download | vim-git-68cc2b8a37197872e737fb61244069e13b7227a2.tar.gz |
patch 8.2.4334: command line popup menu not positioned correctlyv8.2.4334
Problem: Command line popup menu not positioned correctly.
Solution: Also use vim_strsize() on the existing text. (Naruhiko Nishino,
closes #9727)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r-- | src/cmdexpand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index b37c4f9ac..2463ed53e 100644 --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -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) { |