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:
committed by
Christian Brabandt
parent
6eca04e9f1
commit
8df07d0ca3
@@ -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
|
||||
|
Reference in New Issue
Block a user