mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-14 05:13:05 +00:00
Fix mc/cursor-is-bar as per @cpitclaudel
This commit is contained in:
parent
8413969a97
commit
d9a6047d1a
@ -104,10 +104,10 @@
|
|||||||
(set-marker ,s nil))))
|
(set-marker ,s nil))))
|
||||||
|
|
||||||
(defun mc/cursor-is-bar ()
|
(defun mc/cursor-is-bar ()
|
||||||
"returns true if the cursor is a bar"
|
"returns non-nil if the cursor is a bar"
|
||||||
(cond ((equalp cursor-type 'bar) t)
|
(or (eq cursor-type 'bar)
|
||||||
((when (listp cursor-type) (equalp (car cursor-type) 'bar)) t)
|
(and (listp cursor-type)
|
||||||
(t nil)))
|
(eq (car cursor-type) 'bar))))
|
||||||
|
|
||||||
(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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user