Improve oni:move-end-of-dwim

This commit is contained in:
Tom Willemse 2013-05-23 02:45:19 +02:00
parent d68673f992
commit 28a7dcdeb2

View file

@ -260,6 +260,7 @@ extracts the parts I want to know about."
(eolpos (line-end-position)))
(beginning-of-line)
(if (and comment-start
(not (looking-at (regexp-quote comment-start)))
(comment-search-forward eolpos t))
(progn
(search-backward-regexp (concat "[^ \t" comment-start "]"))