aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJames <89495599+IAKOBVS@users.noreply.github.com>2024-06-11 22:40:24 +0700
committerGitHub <noreply@github.com>2024-06-11 16:40:24 +0100
commitc37695a5d5f2e8914fff86f3581bed70b4c85d3c (patch)
tree89c5f523768f3fe31a938e497fb7ff9657049e4b /src/nvim/edit.c
parent44410d063ad23544f87d1c8a553de336ae7939d8 (diff)
downloadrneovim-c37695a5d5f2e8914fff86f3581bed70b4c85d3c.tar.gz
rneovim-c37695a5d5f2e8914fff86f3581bed70b4c85d3c.tar.bz2
rneovim-c37695a5d5f2e8914fff86f3581bed70b4c85d3c.zip
refactor: use S_LEN(s) instead of s, n (#29219)
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index f6e2dbfa4e..889f445c3d 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -3095,7 +3095,7 @@ bool in_cinkeys(int keytyped, int when, bool line_is_empty)
if (try_match && keytyped == 'e' && curwin->w_cursor.col >= 4) {
p = get_cursor_line_ptr();
if (skipwhite(p) == p + curwin->w_cursor.col - 4
- && strncmp(p + curwin->w_cursor.col - 4, "else", 4) == 0) {
+ && strncmp(p + curwin->w_cursor.col - 4, S_LEN("else")) == 0) {
return true;
}
}