diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-03 19:22:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 19:22:32 +0800 |
commit | a3c92f6b6cae67ae417b05fb2b8fb61dc6c11b7c (patch) | |
tree | 109eb74247cf328a7cff313874c2864fc21d4dfc | |
parent | 5841a97500bffa5a2b9eed2eb41025f5587790ba (diff) | |
download | rneovim-a3c92f6b6cae67ae417b05fb2b8fb61dc6c11b7c.tar.gz rneovim-a3c92f6b6cae67ae417b05fb2b8fb61dc6c11b7c.tar.bz2 rneovim-a3c92f6b6cae67ae417b05fb2b8fb61dc6c11b7c.zip |
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
-rw-r--r-- | src/nvim/eval/vars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/vars.c b/src/nvim/eval/vars.c index ee7a8a0dd0..62138221e6 100644 --- 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; } |