summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c2
1 files changed, 1 insertions, 1 deletions
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)
{