summaryrefslogtreecommitdiff
path: root/lib/libedit/filecomplete.c
Commit message (Collapse)AuthorAgeFilesLines
* Update libedit to a snapshot from 2019-09-10Baptiste Daroussin2019-09-131-697/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This version bring many fixes regarding unicode support It also adds proper support for filename completion (we do not need our custom patches anymore) Improves the libreadline compatibility Note that the same work was done by Yuichiro Naito in https://reviews.freebsd.org/D21196 the main difference is in this case we have reimported libedit in contrib to fix a long standing mess in the previous merges which prevented a proper update workflow. (discussed long ago with pfg@) The only difference with upstream libedit is we have added a compatibility shim for the _elf_fn_sh_complete function which we previously added to support quoting in filename completion and is not needed anymore. This was added to continue supported old /bin/sh binaries and not break backward compatibility (as discussed with jilles@) Reviewed by: Yuichiro Naito <naito.yuichiro_gmail.com> MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D21584 Notes: svn path=/head/; revision=352275
* MFV r312996:Pedro F. Giffuni2017-01-301-14/+11
| | | | | | | | | | | | | | Re-import libedit 2016-02-27 This reverts r296435: the issues related to lldb and this update appear to have been identified (in lldb). Obtained from: NetBSD Reported by: emaste MFC after: 3 weeks Notes: svn path=/head/; revision=312997
* libedit: replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-091-2/+2
| | | | | | | | | Found with devel/coccinelle. Reviewed by: Christos Zoulas Notes: svn path=/head/; revision=297757
* Revert r296175Pedro F. Giffuni2016-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 Notes: svn path=/head/; revision=296435
* MFV r296159Pedro F. Giffuni2016-02-291-14/+11
| | | | | | | | | Sync our libedit with NetBSD's libedit 2016-02-27. Obtained from: NetBSD Notes: svn path=/head/; revision=296175
* Synchronize libedit with NetBSD and activate UTF-8 support [1]Baptiste Daroussin2015-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 Notes: svn path=/head/; revision=276881
* libedit: Reduce surprising behaviour with filename completion some more:Jilles Tjoelker2010-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. Notes: svn path=/head/; revision=209224
* libedit: Allow simple quoting in filename completion.Jilles Tjoelker2010-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 Notes: svn path=/head/; revision=209219
* libedit: Fix a bug that could make completion listings incomplete.Jilles Tjoelker2010-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 Notes: svn path=/head/; revision=209217
* libedit: Add basic filename completion code from NetBSD.Jilles Tjoelker2010-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 Notes: svn path=/head/; revision=209136