aboutsummaryrefslogtreecommitdiffhomepage
path: root/path.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-08-31 15:01:02 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-08-31 15:01:02 -0700
commitc38a40d1930d0af2f0d078896fe02fd0bee5fabd (patch)
tree2e70a5cbdd863bde7373ffaa9972a0cd5aaa0c10 /path.cpp
parent23ba7b5bfff9393d222cd8e4a045e3439e24aba1 (diff)
Adjust prefix completions to sort alphabetically instead of by length.
Other completions are still sorted by length. https://github.com/fish-shell/fish-shell/issues/923
Diffstat (limited to 'path.cpp')
-rw-r--r--path.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/path.cpp b/path.cpp
index 27aadbd3..3a0b9c83 100644
--- a/path.cpp
+++ b/path.cpp
@@ -367,6 +367,7 @@ bool path_get_config(wcstring &path)
return ! result.empty();
}
+__attribute__((unused))
static void replace_all(wcstring &str, const wchar_t *needle, const wchar_t *replacement)
{
size_t needle_len = wcslen(needle);