]> git.eshelyaron.com Git - emacs.git/commitdiff
(cua--highlight-rectangle): Preserve
authorKim F. Storm <storm@cua.dk>
Sat, 26 Nov 2005 23:30:43 +0000 (23:30 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 26 Nov 2005 23:30:43 +0000 (23:30 +0000)
existing face when partially highlighting a TAB in a rectangle.

lisp/emulation/cua-rect.el

index d83ebd543cde88d87429400952c1b59e9616515b..35132e60e8df0bb20bdcb0bd66ac6ebbd407439b 100644 (file)
@@ -781,7 +781,7 @@ If command is repeated at same position, delete the rectangle."
                               (make-string
                                (- l cl0 (if (and (= le pl) (/= le lb)) 1 0))
                                (if cua--virtual-edges-debug ?. ?\s))
-                              'face 'default))
+                              'face (or (get-text-property (1- s) 'face) 'default)))
                     (if (/= pl le)
                         (setq s (1- s))))
                   (cond