summaryrefslogtreecommitdiff
path: root/lisp/vcursor.el
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2012-04-11 16:26:55 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2012-04-11 16:26:55 +0200
commitb49f886ef4fc71f0f3719edc0e5a14b700df4d5c (patch)
tree4761bef69d2b5e4a5f571f0e64304a41d0863ce5 /lisp/vcursor.el
parenta63067fcfe742d5c16eb53cf1a603e23c37b0a3a (diff)
downloademacs-b49f886ef4fc71f0f3719edc0e5a14b700df4d5c.tar.gz
* vcursor.el (vcursor-move): Increase the priority of the overlay.
Fixes: debbugs:9663
Diffstat (limited to 'lisp/vcursor.el')
-rw-r--r--lisp/vcursor.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index 95928ebe87a..19cb7a9df8d 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -656,12 +656,13 @@ another window. With LEAVE-W, use the current `vcursor-window'."
(or window-system
(display-color-p)
(overlay-put vcursor-overlay 'before-string vcursor-string))
- (overlay-put vcursor-overlay 'face 'vcursor))
+ (overlay-put vcursor-overlay 'face 'vcursor)
+ ;; 200 is purely an arbitrary "high" number. See bug#9663.
+ (overlay-put vcursor-overlay 'priority 200))
(or leave-w (vcursor-find-window nil t))
;; vcursor-window now contains the right buffer
(or (pos-visible-in-window-p pt vcursor-window)
- (set-window-point vcursor-window pt)))
- )
+ (set-window-point vcursor-window pt))))
(defun vcursor-insert (text)
"Insert TEXT, respecting `vcursor-interpret-input'."