Function: cape-char--exit

cape-char--exit is a byte-compiled function defined in cape-char.el.

Signature

(cape-char--exit HASH NAME STATUS)

Documentation

Exit function given completion STATUS, looks-up NAME in HASH.

Source Code

;; Defined in ~/.emacs.d/elpa/cape-20260804.2303/cape-char.el
(defun cape-char--exit (hash name status)
  "Exit function given completion STATUS, looks-up NAME in HASH."
  (when-let* (((not (eq status 'exact)))
              (char (gethash name hash)))
    (delete-region (max (point-min) (- (point) (length name))) (point))
    (insert char)))