* src/syntax.c (back_comment): Fix off-by-one error.

Fixes: debbugs:18022
This commit is contained in:
Alan Mackenzie 2014-11-06 09:05:58 -05:00 committed by Stefan Monnier
parent 5b9c3a5767
commit 10c5eacef0
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2014-11-06 Alan Mackenzie <acm@muc.de>
* syntax.c (back_comment): Fix off-by-one error (bug#18022).
2014-11-06 Dima Kogan <dima@secretsauce.net>
* xgselect.c (xg_select): Use g_main_context_acquire (bug#18861).

View file

@ -825,7 +825,7 @@ back_comment (ptrdiff_t from, ptrdiff_t from_byte, ptrdiff_t stop,
{
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. */