aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-04-01 12:09:42 +0000
committerDave Love2000-04-01 12:09:42 +0000
commit46a610ab78b8e027887bbf70dbbd90eae265a8a1 (patch)
tree0f2c0c21676af41ed699034d443981d1f8487faf
parentf6afe80c721327bf4ae05b1b964746907d36fd62 (diff)
downloademacs-46a610ab78b8e027887bbf70dbbd90eae265a8a1.tar.gz
emacs-46a610ab78b8e027887bbf70dbbd90eae265a8a1.zip
(vcursor-move): Use display-color-p.
-rw-r--r--lisp/vcursor.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index 669d448aa3e..4b83aee324a 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -321,6 +321,8 @@
321 321
322;;; Code: 322;;; Code:
323 323
324(eval-when-compile (require 'compare-w))
325
324(defgroup vcursor nil 326(defgroup vcursor nil
325 "Manipulate an alternative (\"virtual\") cursor." 327 "Manipulate an alternative (\"virtual\") cursor."
326 :prefix "vcursor-" 328 :prefix "vcursor-"
@@ -654,6 +656,7 @@ another window. With LEAVE-W, use the current `vcursor-window'."
654 (move-overlay vcursor-overlay pt (+ pt 1) (current-buffer)) 656 (move-overlay vcursor-overlay pt (+ pt 1) (current-buffer))
655 (setq vcursor-overlay (make-overlay pt (+ pt 1))) 657 (setq vcursor-overlay (make-overlay pt (+ pt 1)))
656 (or window-system 658 (or window-system
659 (display-color-p)
657 (overlay-put vcursor-overlay 'before-string vcursor-string)) 660 (overlay-put vcursor-overlay 'before-string vcursor-string))
658 (overlay-put vcursor-overlay 'face 'vcursor)) 661 (overlay-put vcursor-overlay 'face 'vcursor))
659 (or leave-w (vcursor-find-window nil t)) 662 (or leave-w (vcursor-find-window nil t))