Commit f2856495 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(cua--highlight-rectangle): Only show

rectangle overlay in selected window.
parent f8a9926b
......@@ -833,6 +833,7 @@ If command is repeated at same position, delete the rectangle."
(overlay-put overlay 'after-string as)
(overlay-put overlay 'face rface)
(overlay-put overlay 'keymap cua--overlay-keymap)
(overlay-put overlay 'window (selected-window))
(setq new (cons overlay new))))))
;; Trim old trailing overlays.
(mapcar (function delete-overlay) old)
......
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