(pcomplete-show-completions): Recognize TAB on text terminals.

This commit is contained in:
Eli Zaretskii 2006-04-01 14:31:32 +00:00
parent 7656d7b47a
commit 338835b79e

View file

@ -978,7 +978,9 @@ Typing SPC flushes the help buffer."
(set-window-configuration pcomplete-last-window-config)
(setq pcomplete-last-window-config nil)
(throw 'done nil))
((event-matches-key-specifier-p event 'tab)
((or (event-matches-key-specifier-p event 'tab)
;; Needed on a terminal
(event-matches-key-specifier-p event 9))
(save-selected-window
(select-window (get-buffer-window "*Completions*"))
(if (pos-visible-in-window-p (point-max))