Don't grow cursor overlays.

This commit is contained in:
Magnar Sveen 2012-07-20 05:27:46 +02:00
parent 466d03607d
commit c34e4df444

View File

@ -10,13 +10,13 @@
(defun mc/make-cursor-overlay-at-eol (pos) (defun mc/make-cursor-overlay-at-eol (pos)
"Create overlay to look like cursor at end of line." "Create overlay to look like cursor at end of line."
(let ((overlay (make-overlay pos pos nil nil t))) (let ((overlay (make-overlay pos pos nil nil nil)))
(overlay-put overlay 'after-string (propertize " " 'face 'mc/cursor-face)) (overlay-put overlay 'after-string (propertize " " 'face 'mc/cursor-face))
overlay)) overlay))
(defun mc/make-cursor-overlay-inline (pos) (defun mc/make-cursor-overlay-inline (pos)
"Create overlay to look like cursor inside text." "Create overlay to look like cursor inside text."
(let ((overlay (make-overlay pos (1+ pos) nil nil t))) (let ((overlay (make-overlay pos (1+ pos) nil nil nil)))
(overlay-put overlay 'face 'mc/cursor-face) (overlay-put overlay 'face 'mc/cursor-face)
overlay)) overlay))