diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-03 10:54:09 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-03 10:54:09 +0000 |
commit | ea720aea851e645f4c8ec3b20afb27c7ca38184c (patch) | |
tree | 3a938313dee390b08effa7ae0818126993cf71ff | |
parent | e83c133eb900898c39e6935a5d569308ff882342 (diff) | |
download | vim-git-ea720aea851e645f4c8ec3b20afb27c7ca38184c.tar.gz |
patch 9.0.1137: some conditions are always falsev9.0.1137
Problem: Some conditions are always false.
Solution: Remove the useless conditions. (closes #11776)
-rw-r--r-- | src/evalvars.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index e52f10ba3..a1970427a 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -4318,7 +4318,7 @@ setwinvar(typval_T *argvars, int off) varname = tv_get_string_chk(&argvars[off + 1]); varp = &argvars[off + 2]; - if (win == NULL || varname == NULL || varp == NULL) + if (win == NULL || varname == NULL) return; need_switch_win = !(tp == curtab && win == curwin); @@ -4687,7 +4687,7 @@ f_settabvar(typval_T *argvars, typval_T *rettv UNUSED) varname = tv_get_string_chk(&argvars[1]); varp = &argvars[2]; - if (varname == NULL || varp == NULL || tp == NULL) + if (varname == NULL || tp == NULL) return; save_curtab = curtab; @@ -4758,7 +4758,7 @@ f_setbufvar(typval_T *argvars, typval_T *rettv UNUSED) buf = tv_get_buf_from_arg(&argvars[0]); varp = &argvars[2]; - if (buf == NULL || varname == NULL || varp == NULL) + if (buf == NULL || varname == NULL) return; if (*varname == '&') diff --git a/src/version.c b/src/version.c index ab0c92317..470853ffc 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1137, +/**/ 1136, /**/ 1135, |