aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reader.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-17 15:56:26 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-18 17:00:26 -0800
commit99e18d9cef17a9e5ef3b0cefc88c2f8f54c38bf5 (patch)
tree9c6020ebfeb8a40fae4f40ca30c60fefa97ed753 /src/reader.cpp
parent718d9baead9d900936c9fd6911e387732f706770 (diff)
Remove autosuggest_suggest_special
Diffstat (limited to 'src/reader.cpp')
-rw-r--r--src/reader.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/reader.cpp b/src/reader.cpp
index 08f84930..81bdefb8 100644
--- a/src/reader.cpp
+++ b/src/reader.cpp
@@ -1479,18 +1479,6 @@ struct autosuggestion_context_t
if (reader_thread_job_is_stale())
return 0;
- /* Try handling a special command like cd */
- completion_t special_suggestion(L"");
- if (autosuggest_suggest_special(search_string, this->vars, &special_suggestion))
- {
- this->autosuggestion = special_suggestion.completion;
- return 1;
- }
-
- /* Maybe cancel here */
- if (reader_thread_job_is_stale())
- return 0;
-
// Here we do something a little funny
// If the line ends with a space, and the cursor is not at the end,
// don't use completion autosuggestions. It ends up being pretty weird seeing stuff get spammed on the right