1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-12 16:23:57 +00:00

(c-beginning-of-defun): With -ve arg and point too close to EOB, leave

point at EOB rather than last `}'.
This commit is contained in:
Alan Mackenzie 2007-04-17 20:48:43 +00:00
parent c825c7249f
commit f7510c4036

View File

@ -1531,7 +1531,7 @@ defun."
(setq arg (c-forward-to-nth-EOF-} (- arg) where)))
;; Move forward to the next opening brace....
(when (and (= arg 0)
(c-syntactic-re-search-forward "{" nil t))
(c-syntactic-re-search-forward "{" nil 'eob))
(backward-char)
;; ... and backward to the function header.
(c-beginning-of-decl-1)