Function: aw--overlay-str
aw--overlay-str is a byte-compiled function defined in ace-window.el.
Signature
(aw--overlay-str WND POS PATH)
Documentation
Return the replacement text for an overlay in WND at POS, accessible by typing PATH.
Source Code
;; Defined in ~/.emacs.d/elpa/ace-window-20220911.358/ace-window.el
(defun aw--overlay-str (wnd pos path)
"Return the replacement text for an overlay in WND at POS,
accessible by typing PATH."
(let ((old-str (or
(ignore-errors
(with-selected-window wnd
(buffer-substring pos (1+ pos))))
"")))
(concat
(cl-case aw-leading-char-style
(char
(string (avy--key-to-char (car (last path)))))
(path
(mapconcat
(lambda (x) (string (avy--key-to-char x)))
(reverse path)
""))
(t
(error "Bad `aw-leading-char-style': %S"
aw-leading-char-style)))
(cond ((string-equal old-str "\t")
(make-string (1- tab-width) ?\ ))
((string-equal old-str "\n")
"\n")
(t
(make-string
(max 0 (1- (string-width old-str)))
?\ ))))))