about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2017-12-19T18·48-0600
committerWill Dietz <w@wdtz.org>2017-12-19T18·52-0600
commit71987b18d472c1c32214b8e4b36c09a972c82c0c (patch)
treea044fcc02079c3b8e632a6282fda5f59e62aa667 /src
parentca40fbdc504b05e73e92d19fdff95e397dc3873a (diff)
linenoise.cpp: allow completions from empty input
Fixes #1742.
Diffstat (limited to 'src')
-rw-r--r--src/linenoise/linenoise.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/linenoise/linenoise.cpp b/src/linenoise/linenoise.cpp
index 8ee8984d6948..c57505d2fa97 100644
--- a/src/linenoise/linenoise.cpp
+++ b/src/linenoise/linenoise.cpp
@@ -2587,13 +2587,6 @@ int InputBuffer::getInputLine(PromptBase& pi) {
 
     // ctrl-I/tab, command completion, needs to be before switch statement
     if (c == ctrlChar('I') && completionCallback) {
-      if (pos == 0)  // SERVER-4967 -- in earlier versions, you could paste
-                     // previous output
-        continue;    //  back into the shell ... this output may have leading
-                     //  tabs.
-      // This hack (i.e. what the old code did) prevents command completion
-      //  on an empty line but lets users paste text with leading tabs.
-
       killRing.lastAction = KillRing::actionOther;
       historyRecallMostRecent = false;