(outline-up-heading): Avoid infinite loop at beginning of buffer.
This commit is contained in:
parent
28636af647
commit
167bed8638
1 changed files with 2 additions and 1 deletions
|
@ -620,7 +620,8 @@ With argument, move up ARG levels."
|
|||
(> arg 0)
|
||||
(not (bobp)))
|
||||
(let ((present-level (funcall outline-level)))
|
||||
(while (not (< (funcall outline-level) present-level))
|
||||
(while (and (not (< (funcall outline-level) present-level))
|
||||
(not (bobp)))
|
||||
(outline-previous-visible-heading 1))
|
||||
(setq arg (- arg 1)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue