commit 9c898e07ee1a10390889254ef38babcbe1a6c0fd parent f1c5ee62d7bc93be470f01d5c4b8ac5df9c58c35 Author: Wojciech Siewierski <wojciech@siewierski.eu> Date: Mon, 6 Mar 2023 01:27:30 +0100 Fix the prefix argument removing the original cursor's overlay Diffstat:
| M | kmacro-x-mc.el | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/kmacro-x-mc.el b/kmacro-x-mc.el @@ -105,9 +105,13 @@ Otherwise searches forward." (unless kmacro-x-mc-mode (let ((kmacro-x-mc-mark-whole-symbol ;; On the first call, use `prefix' to invert the - ;; `kmacro-x-mc-mark-whole-symbol' setting. + ;; `kmacro-x-mc-mark-whole-symbol' setting and then set it + ;; to nil to disable any behavior it would enable on the + ;; subsequent calls instead. (if prefix - (not kmacro-x-mc-mark-whole-symbol) + (prog1 + (not kmacro-x-mc-mark-whole-symbol) + (setq prefix nil)) kmacro-x-mc-mark-whole-symbol))) (kmacro-x-mc-mode 1)))