changeset 28459:d3c34ba6d095

(vcursor-move): Use display-color-p.
author Dave Love <fx@gnu.org>
date Sat, 01 Apr 2000 12:09:42 +0000
parents e47fb07b39d4
children 8a724c4f9928
files lisp/vcursor.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vcursor.el	Sat Apr 01 12:03:57 2000 +0000
+++ b/lisp/vcursor.el	Sat Apr 01 12:09:42 2000 +0000
@@ -321,6 +321,8 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'compare-w))
+
 (defgroup vcursor nil
   "Manipulate an alternative (\"virtual\") cursor."
   :prefix "vcursor-"
@@ -654,6 +656,7 @@
 	(move-overlay vcursor-overlay pt (+ pt 1) (current-buffer))
       (setq vcursor-overlay (make-overlay pt (+ pt 1)))
       (or window-system
+	  (display-color-p)
 	  (overlay-put vcursor-overlay 'before-string vcursor-string))
       (overlay-put vcursor-overlay 'face 'vcursor))
     (or leave-w (vcursor-find-window nil t))