1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

(cua--highlight-rectangle): Only show

rectangle overlay in selected window.
This commit is contained in:
Kim F. Storm 2005-08-01 22:06:42 +00:00
parent f8a9926b35
commit f28564957e

View File

@ -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)