]> git.eshelyaron.com Git - emacs.git/commitdiff
(cua--highlight-rectangle): Only show
authorKim F. Storm <storm@cua.dk>
Mon, 1 Aug 2005 22:06:42 +0000 (22:06 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 1 Aug 2005 22:06:42 +0000 (22:06 +0000)
rectangle overlay in selected window.

lisp/emulation/cua-rect.el

index baa61fcb3950b4358e5deb6cb8e156c874743a29..d83ebd543cde88d87429400952c1b59e9616515b 100644 (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)