summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-10-19 11:18:45 +0300
committerEli Zaretskii <eliz@gnu.org>2024-10-19 11:18:45 +0300
commitd0be0965ca344caab7879b2ac2373a68025c9ba2 (patch)
tree1b6fbda709a1d4f83a8e385d6ac4bc4bb1bbc2ac /lib-src
parent7cbca90569472af5643905fca5b7ab2dea67f876 (diff)
Fix etags tagging by multiline regexps
* lib-src/etags.c (regex_tag_multiline): Fix off-by-one error in determining the end of the tag matched by a multiline regexp. (Bug#73771) * test/manual/etags/ETAGS.good_4: * test/manual/etags/ETAGS.good_5: * test/manual/etags/ETAGS.good_6: Adjust test results to the above change.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index a822a823a90..848d8ea73e3 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -7420,7 +7420,7 @@ regex_tag_multiline (void)
/* Force explicit tag name, if a name is there. */
pfnote (name, true, buffer + linecharno,
- charno - linecharno + 1, lineno, linecharno);
+ charno - linecharno, lineno, linecharno);
if (debug)
fprintf (stderr, "%s on %s:%"PRIdMAX": %s\n",