summaryrefslogtreecommitdiffstats
path: root/lib/libedit/filecomplete.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r312997, r313002:pfg2017-02-201-14/+11
| | | | | | | Re-import libedit 2016-02-27 and update libedit with changes from NetBSD's 2016-03-21. Obtained from: NetBSD
* libedit: replace 0 with NULL for pointers.pfg2016-04-091-2/+2
| | | | | | Found with devel/coccinelle. Reviewed by: Christos Zoulas
* Revert r296175pfg2016-03-061-11/+14
| | | | | | | | | | Undo update of libedit 2016-02-27 Something in libedit appears to be causing breakage in lldb38. The changes are not generally huge but they are suficient to to justify reverting for now. Reported by: novel, bapt
* MFV r296159pfg2016-02-291-14/+11
| | | | | | Sync our libedit with NetBSD's libedit 2016-02-27. Obtained from: NetBSD
* Synchronize libedit with NetBSD and activate UTF-8 support [1]bapt2015-01-091-136/+169
| | | | | | | | | | | | | | Differences with NetBSD Reapply our local patches on top of it Fix Unicode environement detection Fix reading a line in unicode environment. It allows /bin/sh to works in UTF-8 envs Differential Revision: https://reviews.freebsd.org/D1455 Reviewed by: jilles, pfg Obtained from: NetBSD [1] MFC after: 1 month Relnotes: yes
* libedit: Reduce surprising behaviour with filename completion some more:jilles2010-06-151-3/+7
| | | | | | | | | * Quote '*', '?' and '['. While it may be more useful to expand them to matching pathnames, this at least matches with the completion we do. * '@' is a regular character for filenames. Some other shells do @<hostname> completion but we do not. * Prefix names starting with '-' and '+' with './' so they are not seen as options.
* libedit: Allow simple quoting in filename completion.jilles2010-06-151-10/+133
| | | | | | | | | | | | | The completer recognizes characters escaped with backslashes as being literal parts of a word, and adds backslashes to avoid almost all misinterpretation. In particular, filenames containing spaces can be completed correctly. For bug compatibility with the NetBSD version, the improved completion function has a new name, _el_fn_sh_complete, and _el_fn_complete is unchanged. Submitted by: Guy Yur
* libedit: Fix a bug that could make completion listings incomplete.jilles2010-06-151-3/+2
| | | | | | | | The element matches[0] is the common prefix and is not counted in len, so subtracting 1 is not needed. A counter for the number of matches per line was incremented twice. Submitted by: Guy Yur
* libedit: Add basic filename completion code from NetBSD.jilles2010-06-131-0/+541
This will be used to provide filename completion in sh(1). Changes from the NetBSD code: * wide character support disabled, as in the rest of libedit * config.h and related portability stuff reduced/disabled, as in the rest of libedit Submitted by: Guy Yur Obtained from: NetBSD
OpenPOWER on IntegriCloud