summaryrefslogtreecommitdiff
path: root/Completion/Base/Completer/_prefix
AgeCommit message (Collapse)AuthorFilesLines
2023-06-2251860: simplify suffix handling in _prefix to remove less accurate hackMarlon Richert1-7/+2
This solves the following problems in the _prefix completer: - The old code had logic for dealing with compstate[unambiguous] that was unnecessary. It works fine without it. - Because of this logic, if a widget set compstate[insert]=1 after calling _main_complete, an `x` was left after the completion on the command line. - If the same widget also set `compstate[to_end]=`, then instead, the last character of the inserted completion would be treated as an autoremovable suffix, with the actual suffix being inserted to the line as a normal character. - After inserting a completion, the cursor would move to the end of the entire current word on the command, not the end of word that was inserted. This is not what you want with _prefix, since you are trying to complete a word _before_ the one on the command line, after which you usually want to insert a separator, such as a space or slash, before the next word.
2007-05-3023495: fix fall out from (R) change in completion systemPeter Stephenson1-2/+6
2003-12-0519276: fix fallback used to get completer list if the style lookup failedOliver Kiddle1-2/+2
2003-07-0918841: work around problem which caused the whole word to be removedOliver Kiddle1-1/+5
2001-07-10(15357)Sven Wischnowsky1-2/+8
2001-04-02moved from Completion/Core/_prefixSven Wischnowsky1-0/+53