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:
Henrik Lissner 2021-03-10 12:30:26 -05:00
parent a2eac47a75
commit d76d50c1c9

View File

@ -149,8 +149,10 @@ in some cases."
(> (point) bol))
(backward-char))
(skip-chars-backward " " bol)
(unless (or (eq (char-after) 32) (eolp))
(forward-char))
(or (eq (char-after) 32)
(eolp)
(bolp)
(forward-char))
(point)))
eol)))
(list bol bot eot eol))))