mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-05 14:32:24 +00:00
Don't grow cursor overlays.
This commit is contained in:
@@ -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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user