mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00
Don't grow cursor overlays.
This commit is contained in:
parent
466d03607d
commit
c34e4df444
@ -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))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user