From 68cc2b8a37197872e737fb61244069e13b7227a2 Mon Sep 17 00:00:00 2001 From: rbtnn Date: Wed, 9 Feb 2022 11:55:47 +0000 Subject: 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) --- src/cmdexpand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmdexpand.c') diff --git a/src/cmdexpand.c b/src/cmdexpand.c index b37c4f9acb..2463ed53e3 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) { -- cgit v1.2.3