mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -149,7 +149,9 @@ in some cases."
|
||||
(> (point) bol))
|
||||
(backward-char))
|
||||
(skip-chars-backward " " bol)
|
||||
(unless (or (eq (char-after) 32) (eolp))
|
||||
(or (eq (char-after) 32)
|
||||
(eolp)
|
||||
(bolp)
|
||||
(forward-char))
|
||||
(point)))
|
||||
eol)))
|
||||
|
Reference in New Issue
Block a user