* src/syntax.c (back_comment): Fix off-by-one error.
Fixes: debbugs:18022
This commit is contained in:
parent
5b9c3a5767
commit
10c5eacef0
2 changed files with 5 additions and 1 deletions
|
@ -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).
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue