Skip to content

Commit

Permalink
Fix an assignment to free variable warning
Browse files Browse the repository at this point in the history
It fixes a bug introduced by commit
'query-replace-regexp undo: Update next-replacement after undo'
(30c4f35)

See https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00364.html
* lisp/replace.el(perform-replace): Rename variable
to next-replacement-replaced.
  • Loading branch information
calancha committed Sep 17, 2019
1 parent 746b20c commit cbc10ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/replace.el
Original file line number Diff line number Diff line change
Expand Up @@ -2711,7 +2711,7 @@ characters."
search-string (nth (if replaced 4 3) elt)
last-replacement (nth (if replaced 3 4) elt)
search-string-replaced search-string
last-replacement-replaced last-replacement
next-replacement-replaced last-replacement
last-was-act-and-show nil)

(when (and (= stack-idx stack-len)
Expand Down

0 comments on commit cbc10ec

Please sign in to comment.