diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-01-05 22:11:28 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-05 22:11:28 +0800 |
commit | 30547c0d2b051dd4067f3197b968c28456fd23ff (patch) | |
tree | a3ee7f3d998750952a87c8a68905980dbc99d197 | |
parent | bfe11dc8d08141fcb8b0fddda4526a995b3a5538 (diff) | |
download | rneovim-30547c0d2b051dd4067f3197b968c28456fd23ff.tar.gz rneovim-30547c0d2b051dd4067f3197b968c28456fd23ff.tar.bz2 rneovim-30547c0d2b051dd4067f3197b968c28456fd23ff.zip |
vim-patch:8.2.3999: redundant check for NUL byte
Problem: Redundant check for NUL byte.
Solution: Remove the check for a NUL byte. (closes vim/vim#9471)
https://github.com/vim/vim/commit/c024ed9233feac4c8da7394a62bb50474803514f
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 157e82f585..10ee0e10a8 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -2897,7 +2897,7 @@ void f_fullcommand(typval_T *argvars, typval_T *rettv, FunPtr fptr) return; } - while (*name != NUL && *name == ':') { + while (*name == ':') { name++; } name = skip_range(name, NULL); |