Fix #4676: one-off on go-to-EOL if comment at BOL
Before this commit: 1. With `|;;; hello` 2. Press `C-e`: `;|;; hello` 3. Press `C-e` again: `;;; hello|` After: 1. With `|;;; hello` 2. Press `C-e`: `;;; hello|` 3. Press `C-e` again: `|;;; hello`
This commit is contained in:
parent
a2eac47a75
commit
d76d50c1c9
1 changed files with 4 additions and 2 deletions
|
@ -149,8 +149,10 @@ in some cases."
|
||||||
(> (point) bol))
|
(> (point) bol))
|
||||||
(backward-char))
|
(backward-char))
|
||||||
(skip-chars-backward " " bol)
|
(skip-chars-backward " " bol)
|
||||||
(unless (or (eq (char-after) 32) (eolp))
|
(or (eq (char-after) 32)
|
||||||
(forward-char))
|
(eolp)
|
||||||
|
(bolp)
|
||||||
|
(forward-char))
|
||||||
(point)))
|
(point)))
|
||||||
eol)))
|
eol)))
|
||||||
(list bol bot eot eol))))
|
(list bol bot eot eol))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue