emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117675: * src/syntax.c (back_comment): Fix off-b


From: Stefan Monnier
Subject: [Emacs-diffs] emacs-24 r117675: * src/syntax.c (back_comment): Fix off-by-one error.
Date: Thu, 06 Nov 2014 14:06:03 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117675
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18022
author: Alan Mackenzie <address@hidden>
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Thu 2014-11-06 09:05:58 -0500
message:
  * src/syntax.c (back_comment): Fix off-by-one error.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/syntax.c                   syntax.c-20091113204419-o5vbwnq5f7feedwu-180
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-11-06 03:02:11 +0000
+++ b/src/ChangeLog     2014-11-06 14:05:58 +0000
@@ -1,3 +1,7 @@
+2014-11-06  Alan Mackenzie  <address@hidden>
+
+       * syntax.c (back_comment): Fix off-by-one error (bug#18022).
+
 2014-11-06  Dima Kogan  <address@hidden>
 
        * xgselect.c (xg_select): Use g_main_context_acquire (bug#18861).

=== modified file 'src/syntax.c'
--- a/src/syntax.c      2014-08-28 16:26:39 +0000
+++ b/src/syntax.c      2014-11-06 14:05:58 +0000
@@ -825,7 +825,7 @@
     {
       from = comment_end;
       from_byte = comment_end_byte;
-      UPDATE_SYNTAX_TABLE_FORWARD (comment_end - 1);
+      UPDATE_SYNTAX_TABLE_FORWARD (comment_end);
     }
   /* If comstart_pos is set and we get here (ie. didn't jump to `lossage'
      or `done'), then we've found the beginning of the non-nested comment.  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]