From 4781d6fd8670af415c3b78f00d70036af85bd286 Mon Sep 17 00:00:00 2001 From: Dominique Pelle Date: Tue, 18 May 2021 21:46:31 +0200 Subject: patch 8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Unnessary VIM_ISDIGIT() calls, badly indented code. Solution: Call skipdigits() on the next character. Improve indenting. (Dominique Pellé, closes #8227) --- src/tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tag.c') diff --git a/src/tag.c b/src/tag.c index 4eb7a4f43..256f885c8 100644 --- a/src/tag.c +++ b/src/tag.c @@ -3824,7 +3824,7 @@ find_extra(char_u **pp) for (;;) { if (VIM_ISDIGIT(*str)) - str = skipdigits(str); + str = skipdigits(str + 1); else if (*str == '/' || *str == '?') { str = skip_regexp(str + 1, *str, FALSE); -- cgit v1.2.1