Fix mc/cursor-is-bar as per @cpitclaudel

This commit is contained in:
jules tamagnan 2016-07-05 06:01:11 -04:00
parent 8413969a97
commit d9a6047d1a

View File

@ -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."