* lisp/tmm.el (tmm-completion-delete-prompt): Add more checks (bug#63754).
In case when 'completions-header-format' is nil, the first 'mouse-face' property is at the beginning of the buffer. So first use 'get-text-property' at point-min.
This commit is contained in:
parent
afc1f32935
commit
500abc4dc3
1 changed files with 2 additions and 1 deletions
|
@ -329,7 +329,8 @@ Stores a list of all the shortcuts in the free variable `tmm-short-cuts'."
|
|||
(with-current-buffer standard-output
|
||||
(goto-char (point-min))
|
||||
(let* (;; First candidate: first string with mouse-face
|
||||
(menu-start-1 (next-single-char-property-change (point) 'mouse-face))
|
||||
(menu-start-1 (or (and (get-text-property (point) 'mouse-face) (point))
|
||||
(next-single-char-property-change (point) 'mouse-face)))
|
||||
;; Second candidate: an inactive menu item with tmm-inactive face
|
||||
(tps-result (save-excursion
|
||||
(text-property-search-forward 'face 'tmm-inactive t)))
|
||||
|
|
Loading…
Add table
Reference in a new issue