diff options
author | Will Dietz <w@wdtz.org> | 2017-12-19 12:48:34 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2017-12-19 12:52:10 -0600 |
commit | 71987b18d472c1c32214b8e4b36c09a972c82c0c (patch) | |
tree | a044fcc02079c3b8e632a6282fda5f59e62aa667 /src | |
parent | ca40fbdc504b05e73e92d19fdff95e397dc3873a (diff) |
linenoise.cpp: allow completions from empty input
Fixes #1742.
Diffstat (limited to 'src')
-rw-r--r-- | src/linenoise/linenoise.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/linenoise/linenoise.cpp b/src/linenoise/linenoise.cpp index 8ee8984d6..c57505d2f 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; |