0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 9.1.0798: too many strlen() calls in cmdhist.c

Problem:  too many strlen() calls in cmdhist.c
Solution: refactor code and remove strlen() calls
          (John Marriott)

closes: #15888

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
John Marriott
2024-10-21 22:37:07 +02:00
committed by Christian Brabandt
parent 6eca04e9f1
commit 8df07d0ca3
6 changed files with 112 additions and 54 deletions

View File

@@ -1430,7 +1430,7 @@ cmdline_browse_history(
else
{
p = get_histentry(histype)[hiscnt].hisstr;
plen = STRLEN(p);
plen = get_histentry(histype)[hiscnt].hisstrlen;
}
if (histype == HIST_SEARCH