diff options
author | John Marriott <basilisk@internode.on.net> | 2024-05-20 19:18:26 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-20 19:18:26 +0200 |
commit | 8c85a2a49acf80e4f53ec51e6ff2a5f3830eeddb (patch) | |
tree | d6554cf3c98aeef4af872d35ded945933bf911f8 /src/proto/cmdhist.pro | |
parent | 69dff00dfb37077f4a80fd9635ea963889ad4b49 (diff) |
patch 9.1.0426: too many strlen() calls in search.cv9.1.0426
Problem: too many strlen() calls in search.c
Solution: refactor code and remove more strlen() calls,
use explicit variable to remember strlen
(John Marriott)
closes: #14796
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/proto/cmdhist.pro')
-rw-r--r-- | src/proto/cmdhist.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/cmdhist.pro b/src/proto/cmdhist.pro index 9c9e56c075..5bf4b8da44 100644 --- a/src/proto/cmdhist.pro +++ b/src/proto/cmdhist.pro @@ -9,7 +9,7 @@ char_u *get_history_arg(expand_T *xp, int idx); void init_history(void); void clear_hist_entry(histentry_T *hisptr); int in_history(int type, char_u *str, int move_to_front, int sep, int writing); -void add_to_history(int histype, char_u *new_entry, int in_map, int sep); +void add_to_history(int histype, char_u *new_entry, size_t new_entrylen, int in_map, int sep); void f_histadd(typval_T *argvars, typval_T *rettv); void f_histdel(typval_T *argvars, typval_T *rettv); void f_histget(typval_T *argvars, typval_T *rettv); |