summaryrefslogtreecommitdiff
path: root/lisp/buff-menu.el
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-01-11 23:15:10 +0000
committerAndreas Schwab <schwab@suse.de>2003-01-11 23:15:10 +0000
commita9fb4690e71e4ccf177374bcbb09ef2bc4a205e2 (patch)
treefb9104fea29ac1f5064e60f6b34692a246735a13 /lisp/buff-menu.el
parenteaae32461d94f4c2f240112c8a1f07beda58f2d7 (diff)
downloademacs-a9fb4690e71e4ccf177374bcbb09ef2bc4a205e2.tar.gz
(Buffer-menu-select): Fix for effect of header line.
Diffstat (limited to 'lisp/buff-menu.el')
-rw-r--r--lisp/buff-menu.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index c7bb7009241..696b7245d16 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -373,7 +373,9 @@ in the selected frame."
(others ())
tem)
(goto-char (point-min))
- (while (search-forward "\n>" nil t)
+ (unless Buffer-menu-use-header-line
+ (forward-line 1))
+ (while (re-search-forward "^>" nil t)
(setq tem (Buffer-menu-buffer t))
(let ((buffer-read-only nil))
(delete-char -1)