mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-25 19:11:56 +00:00
(find_defun_start): scan_buffer returns start of line;
no need to advance over newline.
This commit is contained in:
parent
6fb48933f7
commit
f77ffc3d77
@ -82,9 +82,6 @@ find_defun_start (pos)
|
||||
|
||||
/* Back up to start of line. */
|
||||
tem = scan_buffer ('\n', pos, -1, &shortage);
|
||||
/* If we found a newline, we moved back over it, so advance fwd past it. */
|
||||
if (shortage == 0)
|
||||
tem++;
|
||||
|
||||
while (tem > BEGV)
|
||||
{
|
||||
@ -93,8 +90,6 @@ find_defun_start (pos)
|
||||
break;
|
||||
/* Move to beg of previous line. */
|
||||
tem = scan_buffer ('\n', tem, -2, &shortage);
|
||||
if (shortage == 0)
|
||||
tem++;
|
||||
}
|
||||
|
||||
/* Record what we found, for the next try. */
|
||||
|
Loading…
Reference in New Issue
Block a user