Commit 452b2285 authored by Karl Heuer's avatar Karl Heuer
Browse files

(ada-search-ignore-string-comment):

In "found in comment" case, don't beginning-of-line after forward-line.
parent 223a2a62
......@@ -3022,9 +3022,10 @@ This works by two steps:
(progn
(re-search-backward "--" nil 1)
(goto-char (match-beginning 0)))
(progn
(forward-line 1)
(beginning-of-line))))
(forward-line 1)
;; Used to have (beginning-of-line) here,
;; but that caused trouble at end of buffer with no newline.
))
;;
;; found in string => skip it
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment