cmdline: correct the column position of wildoptions=pum popupmenu

- position might get invalid with "longest" match
- position might be wrong when completed pattern ends in "/"
This commit is contained in:
Björn Linse
2019-07-01 13:42:46 +02:00
parent 740fb337dd
commit b98d1cf68b
5 changed files with 105 additions and 65 deletions

View File

@@ -4657,7 +4657,7 @@ win_redr_status_matches (
int showtail
)
{
#define L_MATCH(m) (showtail ? sm_gettail(matches[m]) : matches[m])
#define L_MATCH(m) (showtail ? sm_gettail(matches[m], false) : matches[m])
int row;
char_u *buf;
int len;