mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
Fix doom/forward-to-last-non-comment-or-eol when visual-line-mode is off #450
This commit is contained in:
@@ -51,7 +51,10 @@ beginning of the line. The opposite of
|
||||
"Jumps between the last non-blank, non-comment character in the line and the
|
||||
true end of the line. The opposite of `doom/backward-to-bol-or-indent'."
|
||||
(interactive)
|
||||
(let ((eol (save-excursion (end-of-visual-line) (point))))
|
||||
(let ((eol (save-excursion (if visual-line-mode
|
||||
(end-of-visual-line)
|
||||
(end-of-line))
|
||||
(point))))
|
||||
(if (and (sp-point-in-comment) (not (= (point) eol)))
|
||||
(goto-char eol)
|
||||
(let* ((bol (save-excursion (beginning-of-visual-line) (point)))
|
||||
|
Reference in New Issue
Block a user