Function: mc/num-cursors

mc/num-cursors is a natively compiled function defined in multiple-cursors-core.el.

Signature

(mc/num-cursors)

Documentation

The number of cursors (real and fake) in the buffer.

Source Code

;; Defined in /nix/store/5q7a78ihkz25lf4xmxaa9m7b2ym63m36-emacs-packages-deps/share/emacs/site-lisp/elpa/multiple-cursors-20260419.931/multiple-cursors-core.el
(defun mc/num-cursors ()
  "The number of cursors (real and fake) in the buffer."
  (1+ (cl-count-if #'mc/fake-cursor-p
                   (overlays-in (point-min) (point-max)))))