Mercurial > vim
comparison src/tag.c @ 24665:661d15592d3c v8.2.2871
patch 8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code
Commit: https://github.com/vim/vim/commit/4781d6fd8670af415c3b78f00d70036af85bd286
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Tue May 18 21:46:31 2021 +0200
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 #8227)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 May 2021 22:00:05 +0200 |
parents | 5c456a88f651 |
children | e9065d299e9b |
comparison
equal
deleted
inserted
replaced
24664:a9cb1f88ff40 | 24665:661d15592d3c |
---|---|
3822 | 3822 |
3823 // Repeat for addresses separated with ';' | 3823 // Repeat for addresses separated with ';' |
3824 for (;;) | 3824 for (;;) |
3825 { | 3825 { |
3826 if (VIM_ISDIGIT(*str)) | 3826 if (VIM_ISDIGIT(*str)) |
3827 str = skipdigits(str); | 3827 str = skipdigits(str + 1); |
3828 else if (*str == '/' || *str == '?') | 3828 else if (*str == '/' || *str == '?') |
3829 { | 3829 { |
3830 str = skip_regexp(str + 1, *str, FALSE); | 3830 str = skip_regexp(str + 1, *str, FALSE); |
3831 if (*str != first_char) | 3831 if (*str != first_char) |
3832 str = NULL; | 3832 str = NULL; |