mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
vim-patch:9.1.0798: too many strlen() calls in cmdhist.c (#30895)
Problem: too many strlen() calls in cmdhist.c
Solution: refactor code and remove strlen() calls
(John Marriott)
closes: vim/vim#15888
8df07d0ca3
Co-authored-by: John Marriott <basilisk@internode.on.net>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user