diff options
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index b58a6b16f1..389e935557 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1789,7 +1789,7 @@ static int command_line_browse_history(CommandLineState *s) plen = s->lookforlen; } else { p = get_histentry(s->histype)[s->hiscnt].hisstr; - plen = (int)strlen(p); + plen = (int)get_histentry(s->histype)[s->hiscnt].hisstrlen; } if (s->histype == HIST_SEARCH |