changeset 77285:1f5115cdbed5

(c-beginning-of-defun): With -ve arg and point too close to EOB, leave point at EOB rather than last `}'.
author Alan Mackenzie <acm@muc.de>
date Tue, 17 Apr 2007 20:48:43 +0000
parents a77b41cb3431
children 0f67bcedb447
files lisp/progmodes/cc-cmds.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el	Tue Apr 17 20:44:18 2007 +0000
+++ b/lisp/progmodes/cc-cmds.el	Tue Apr 17 20:48:43 2007 +0000
@@ -1531,7 +1531,7 @@
 	      (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)