aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-05-09 07:18:54 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-05-09 07:18:54 +0600
commit2bb22ce567afaeb2c5885aade71163765be524d9 (patch)
tree96bcddf448ccdfb1a04b1c4082bd8a5617c9f34c
parent1f952e34f2e4816f356c4a0832e2e57ab897e002 (diff)
downloadrneovim-2bb22ce567afaeb2c5885aade71163765be524d9.tar.gz
rneovim-2bb22ce567afaeb2c5885aade71163765be524d9.tar.bz2
rneovim-2bb22ce567afaeb2c5885aade71163765be524d9.zip
STRLEN -> strlen
-rw-r--r--src/nvim/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index e9dfd87c1c..82fc0f9d8e 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -4358,7 +4358,6 @@ static void cmdline_search_stat(int dirc, pos_T *pos, pos_T *cursor_pos,
timeout);
if (stat.cur > 0) {
char t[SEARCH_STAT_BUF_LEN];
- size_t len;
if (curwin->w_p_rl && *curwin->w_p_rlc == 's') {
if (stat.incomplete == 1) {
@@ -4388,7 +4387,7 @@ static void cmdline_search_stat(int dirc, pos_T *pos, pos_T *cursor_pos,
}
}
- len = STRLEN(t);
+ size_t len = strlen(t);
if (show_top_bot_msg && len + 2 < SEARCH_STAT_BUF_LEN) {
memmove(t + 2, t, len);
t[0] = 'W';