diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-19 20:45:57 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-19 20:58:09 -0400 |
commit | 003cda23123e98824ccc8f7467cf6800a8e75961 (patch) | |
tree | 7aaad26ae8114b7ce91c28825d81aaa2497b90ef /src/nvim/tag.c | |
parent | 5fd605e1d1d90e805c36a51c8764fa298f84006c (diff) | |
download | rneovim-003cda23123e98824ccc8f7467cf6800a8e75961.tar.gz rneovim-003cda23123e98824ccc8f7467cf6800a8e75961.tar.bz2 rneovim-003cda23123e98824ccc8f7467cf6800a8e75961.zip |
vim-patch:8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code
Problem: Unnessary VIM_ISDIGIT() calls, badly indented code.
Solution: Call skipdigits() on the next character. Improve indenting.
(Dominique Pellé, closes vim/vim#8227)
https://github.com/vim/vim/commit/4781d6fd8670af415c3b78f00d70036af85bd286
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index f0e48013b2..ab35c936ca 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -3010,7 +3010,7 @@ static int find_extra(char_u **pp) // Repeat for addresses separated with ';' for (;; ) { if (ascii_isdigit(*str)) { - str = skipdigits(str); + str = skipdigits(str + 1); } else if (*str == '/' || *str == '?') { str = skip_regexp(str + 1, *str, false, NULL); if (*str != first_char) { |