Improve oni:move-end-of-dwim
This commit is contained in:
parent
d68673f992
commit
28a7dcdeb2
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ extracts the parts I want to know about."
|
||||||
(eolpos (line-end-position)))
|
(eolpos (line-end-position)))
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(if (and comment-start
|
(if (and comment-start
|
||||||
|
(not (looking-at (regexp-quote comment-start)))
|
||||||
(comment-search-forward eolpos t))
|
(comment-search-forward eolpos t))
|
||||||
(progn
|
(progn
|
||||||
(search-backward-regexp (concat "[^ \t" comment-start "]"))
|
(search-backward-regexp (concat "[^ \t" comment-start "]"))
|
||||||
|
|
Loading…
Reference in a new issue