commit f25504a8fa3bf9b92125427341725df7cfbcebfb
parent 825aea2c01e1fe750a92d9963ffbd72981263a17
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Date: Tue, 18 Apr 2023 01:37:58 +0200
Fix the region boundaries
This bug got introduced in the recent refactoring. Both offsets
should be calculated against the overlay start ("beg") but out of
habit I've used "beg" and "end" for two consecutive arguments.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kmacro-x-mc.el b/kmacro-x-mc.el
@@ -116,7 +116,7 @@ all times without searching through this list.")
(ov (make-overlay beg end nil front-advance rear-advance)))
(overlay-put ov 'face 'kmacro-x-mc-main-cursor-face)
(overlay-put ov 'offsets (cons (- (point) beg)
- (- (mark) end)))
+ (- (mark) beg)))
(when kmacro-x-mc-live-preview
(let ((hooks (list #'kmacro-x-mc--modification-hook-live-preview)))
(overlay-put ov 'modification-hooks hooks)