[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Completions which contain spaces don't work by as expected.
From: |
John Darrington |
Subject: |
Completions which contain spaces don't work by as expected. |
Date: |
Thu, 20 Feb 2020 20:00:00 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
I have a custom completer which provides a largish number of possible
strings such as:
"Arrays"
"Array Instances"
"Array Literals"
"Array Deletion"
"Binary"
"Loops"
...
When completing single words everything is fine.
However when completing an entry which contains a space, then things
go wrong:
One types "Arr" and hits TAB: The line autocompletes to "Array".
Hit TAB again and the list of completions is shows:
"Arrays"
"Array Instances"
"Array Literals"
"Array Deletion"
... So far so good ...
Now I want to choose "Array Literals", so I enter " L" and hit TAB. But
instead of completing to "Array Literals", readline starts a new
completion, and completes to "Array Loops" which is not a valid
completion.
I have tried fooling with rl_completer_word_break_characters, and
rl_basic_break_characters, and other variables, but none seems to
do anything useful.
So my questions are:
Is this a bug, or just me using the library incorrectly?
Is there any way to get the behaviour which the user would intuitively
expect?
Thanks,
J'
- Completions which contain spaces don't work by as expected.,
John Darrington <=