aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-15 18:20:44 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-15 18:20:44 -0700
commit7d029778e627217bf7d3ef33b5fccf43f8dd4dde (patch)
tree8790a200ffa3e7c30af40e1ea500b2abe68c3e3a /complete.cpp
parent26857fabdc72c4b045bf7acf6d2a6a4f55354bae (diff)
Disable file completion descriptions per https://github.com/fish-shell/fish-shell/issues/279
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/complete.cpp b/complete.cpp
index a4f6a9aa..11d689c6 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -1521,8 +1521,9 @@ void completer_t::complete_param_expand( const wcstring &sstr, bool do_file)
if (! do_file)
flags |= EXPAND_SKIP_WILDCARDS;
-
- if (type == COMPLETE_AUTOSUGGEST)
+
+ /* Squelch file descriptions per issue 254 */
+ if (type == COMPLETE_AUTOSUGGEST || do_file)
flags |= EXPAND_NO_DESCRIPTIONS;
if( expand_string( comp_str,