Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libedit



Module Name:    src
Committed By:   abhinav
Date:           Sun Mar 31 03:04:58 UTC 2019

Modified Files:
        src/lib/libedit: filecomplete.c
        src/lib/libedit/TEST: test_filecompletion.c

Log Message:
Perform quoting of filename completions when there are multiple matches as well

Quoting of special characters in filename completion was implemented for single match
case, this enables it for multiple matches as well. For example:

$ touch 'foo bar'
$ touch 'foo baz'
$ ls fo<TAB>
autocompletes to =>
$ ls foo\ ba
hitting <TAB> again shows:
foo bar foo baz

This required unescaping escape sequences generated during last completion
in order to find the word to complete.

While there, also update the test to include cases for multiple matches.

Reviewed by christos


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/lib/libedit/filecomplete.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libedit/TEST/test_filecompletion.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index