Function: cider--invert-prefix-arg

cider--invert-prefix-arg is a byte-compiled function defined in cider-find.el.

Signature

(cider--invert-prefix-arg ARG)

Documentation

Invert the effect of prefix value ARG on cider-prompt-for-symbol.

This function preserves the other-window meaning of ARG.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-find.el
(defun cider--invert-prefix-arg (arg)
  "Invert the effect of prefix value ARG on `cider-prompt-for-symbol'.
This function preserves the `other-window' meaning of ARG."
  (let ((narg (prefix-numeric-value arg)))
    (pcase narg
      (16 -1)   ; empty empty -> -
      (-1 16)   ; - -> empty empty
      (4 nil)   ; empty -> no-prefix
      (_ 4)))) ; no-prefix -> empty