mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #1558: doom/forward-to-last-non-comment-or-eol
Should jump to EOL if end-of-non-comment is before point.
This commit is contained in:
@ -72,10 +72,10 @@ true end of the line. The opposite of `doom/backward-to-bol-or-indent'."
|
||||
(skip-chars-backward " " bol)
|
||||
(point)))
|
||||
eol)))
|
||||
(cond ((= boc (point))
|
||||
(goto-char eol))
|
||||
((/= bol boc)
|
||||
(goto-char boc)))))))
|
||||
(if (or (= eol (point))
|
||||
(> boc (point)))
|
||||
(goto-char boc)
|
||||
(goto-char eol))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/dumb-indent ()
|
||||
|
Reference in New Issue
Block a user