about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-12-20T18·18-0500
committerShea Levy <shea@shealevy.com>2017-12-20T18·18-0500
commit62e214fa6f34a287f04348b633ba5ef88e06df66 (patch)
treef6e14157fa915d48f47fbf82ab1db42e1426c3b0 /src
parent576abaa6503f2813892a67e1ecd9dd2210d99099 (diff)
parent71987b18d472c1c32214b8e4b36c09a972c82c0c (diff)
Merge branch 'fix/issue-1742-empty-completions' of git://github.com/dtzWill/nix
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;