about summary refs log tree commit diff
path: root/src/linenoise/linenoise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linenoise/linenoise.cpp')
-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;