Skip to content

Commit

Permalink
Addresses #33. Remove the superfluous (setq found nil) in adoc-kw-rep…
Browse files Browse the repository at this point in the history
…lacement
  • Loading branch information
Tobias Zawada authored and TobiasZawada committed Aug 3, 2023
1 parent 2578d9a commit f68c4b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adoc-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1902,10 +1902,8 @@ meta characters."
;; matcher function
(lambda (end)
(let (found)
(while (and (setq found
(adoc-kwf-search ,regexp end t))
(while (and (setq found (adoc-kwf-search ,regexp end t))
(text-property-not-all (match-beginning 1) (match-end 1) 'adoc-reserved nil))
(setq found nil)
(goto-char (+ (match-beginning 0) 1)))
(when (and found adoc-insert-replacement ,replacement)
(let* ((s (cond
Expand Down

0 comments on commit f68c4b9

Please sign in to comment.