|
From: | Grisha Levit |
Subject: | Re: completion-prefix-display-length doesn't check for common prefix |
Date: | Sun, 24 Apr 2016 15:36:35 -0400 |
On Fri, Apr 22, 2016 at 3:23 PM, Chet Ramey chet.ramey@case.edu wrote:
Bash-4.4 doesn’t do this.
I was testing this with the latest devel version.
$ echo $BASH_VERSION
4.4.0(2)-rc1
$ cat .inputrc
set completion-prefix-display-length 2
$ f() { COMPREPLY=(aaaaa bbbbb ccccc); }; complete -F f f
$ f ddd<TAB><TAB>
aaaaa bbbbb ccccc
$ f dddd<TAB><TAB>
...a ...b ...c
Note also this strange behavior, which is fixed if completion-prefix-display-length
is unset:
$ f ddddd<TAB><TAB>
aaaaabbbbbccccc
$ bind 'set completion-prefix-display-length 0'
$ f ddddd<TAB><TAB>
aaaaa bbbbb ccccc
[Prev in Thread] | Current Thread | [Next in Thread] |