commit a3c92f6b6cae67ae417b05fb2b8fb61dc6c11b7c
parent 5841a97500bffa5a2b9eed2eb41025f5587790ba
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue, 3 Jan 2023 19:22:32 +0800
vim-patch:9.0.1137: some conditions are always false (#21628)
Problem: Some conditions are always false.
Solution: Remove the useless conditions. (closes vim/vim#11776)
https://github.com/vim/vim/commit/ea720aea851e645f4c8ec3b20afb27c7ca38184c
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/eval/vars.c b/src/nvim/eval/vars.c
@@ -1654,7 +1654,7 @@ static void setwinvar(typval_T *argvars, typval_T *rettv, int off)
const char *varname = tv_get_string_chk(&argvars[off + 1]);
typval_T *varp = &argvars[off + 2];
- if (win == NULL || varname == NULL || varp == NULL) {
+ if (win == NULL || varname == NULL) {
return;
}