aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.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/ex_getln.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/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index cef1868fc8..74e6e3422e 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -2799,13 +2799,13 @@ int check_opt_wim(void)
if (p[i] != NUL && p[i] != ',' && p[i] != ':') {
return FAIL;
}
- if (i == 7 && strncmp(p, "longest", 7) == 0) {
+ if (i == 7 && strncmp(p, S_LEN("longest")) == 0) {
new_wim_flags[idx] |= WIM_LONGEST;
- } else if (i == 4 && strncmp(p, "full", 4) == 0) {
+ } else if (i == 4 && strncmp(p, S_LEN("full")) == 0) {
new_wim_flags[idx] |= WIM_FULL;
- } else if (i == 4 && strncmp(p, "list", 4) == 0) {
+ } else if (i == 4 && strncmp(p, S_LEN("list")) == 0) {
new_wim_flags[idx] |= WIM_LIST;
- } else if (i == 8 && strncmp(p, "lastused", 8) == 0) {
+ } else if (i == 8 && strncmp(p, S_LEN("lastused")) == 0) {
new_wim_flags[idx] |= WIM_BUFLASTUSED;
} else {
return FAIL;