| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prior to this fix, when completing a command that doesn't have a /, we
would prepend each component of PATH and then expand the whole thing. So
any special characters in the PATH would be interpreted when performing
tab completion.
With this fix, we pull the PATH resolution out of complete.cpp and
migrate it to expand.cpp. This unifies nicely with the CDPATH resolution
already in that file. This requires introducing a new expand flag
EXPAND_SPECIAL_FOR_COMMAND, which is analogous to EXPAND_SPECIAL_CD
(which is renamed to EXPAND_SPECIAL_FOR_CD). This flag tells expand to
resolve paths against PATH instead of the working directory.
Fixes #952
|
|
|
|
|
|
| |
Cppcheck has identified a lot of unused functions. This removes funcs that
are unlikely to ever be used. Others that might be useful for debugging I've
commented out with "#if 0".
|
|
|
|
| |
Fixes #2796
|
|
|
|
| |
Ought to fix the wildcard expansion test on Linux
|
| |
|
| |
|
|
|
|
| |
This will simplify some code and make the cd autosuggestion smarter
|
|
|
|
|
| |
Breaks up a big ugly function into separable stages
with a common interface.
|
| |
|
|
|
|
| |
Remove some unnecessary variables, make some things not pointers
|
| |
|
|
|
|
|
| |
Puts back sys/sysctl.h header, so we know to use BSD style process
expansion
|
|
|
|
| |
This is yet clearer
|
| |
|
|
|
|
| |
Not yet turned on.
|
|\
| |
| |
| | |
http://include-what-you-use.org/
|
| |
| |
| |
| |
| | |
Replace uses of vector<completion_t>& with vector<completion_t>*
This makes it clear at the call site that the object may be mutated.
|
| |
| |
| |
| | |
Migrate some functions into tokenizer instance methods
|
|/ |
|
|
This change moves source files into a src/ directory,
and puts object files into an obj/ directory. The Makefile
and xcode project are updated accordingly.
Fixes #1866
|