Fix doom/forward-to-last-non-comment-or-eol #1306
This command would no-op if used in major modes with "fake" comments. i.e. modes where "comments" are merely highlighted as comments, but have no comment entry in its syntax table. e.g. text-mode + git-commit-mode.
This commit is contained in:
parent
bf2aedc510
commit
23467374f5
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ true end of the line. The opposite of `doom/backward-to-bol-or-indent'."
|
|||
(end-of-visual-line)
|
||||
(end-of-line))
|
||||
(point))))
|
||||
(if (and (sp-point-in-comment) (not (= (point) eol)))
|
||||
(if (or (and (< (point) eol)
|
||||
(sp-point-in-comment))
|
||||
(not (sp-point-in-comment eol)))
|
||||
(goto-char eol)
|
||||
(let* ((bol (save-excursion (beginning-of-visual-line) (point)))
|
||||
(boc (or (save-excursion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue