mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 05:03:03 +00:00
Detect cursor bar type when specified by the frame.
When the 'cursor-type' for the buffer is specified by the frame, this was not detected by the current logic as 'cursor-type' will be set to 't' and thus not explicitly match 'bar'. This update checks to see if 'cursor-type' is specified by the frame and will pull the parameter from the frame if it is, prior to subsequent checks.
This commit is contained in:
parent
1e4842d129
commit
fe0d516745
@ -122,9 +122,13 @@ rendered or shift text."
|
||||
|
||||
(defun mc/cursor-is-bar ()
|
||||
"Return non-nil if the cursor is a bar."
|
||||
(let ((cursor-type
|
||||
(if (eq cursor-type t)
|
||||
(frame-parameter nil 'cursor-type)
|
||||
cursor-type)))
|
||||
(or (eq cursor-type 'bar)
|
||||
(and (listp cursor-type)
|
||||
(eq (car cursor-type) 'bar))))
|
||||
(eq (car cursor-type) 'bar)))))
|
||||
|
||||
(defun mc/line-number-at-pos (&optional pos absolute)
|
||||
"Faster implementation of `line-number-at-pos'."
|
||||
|
Loading…
x
Reference in New Issue
Block a user