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:
parent
8158cb1402
commit
f0abd10409
1 changed files with 4 additions and 4 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue