aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))