aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/reader.cpp b/reader.cpp
index bb3b57fc..c45e62b2 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -3117,7 +3117,10 @@ const wchar_t *reader_readline(void)
c = 0;
break;
}
- c = input_readch();
+ // only allow commands on the first key; otherwise, we might
+ // have data we need to insert on the commandline that the
+ // commmand might need to be able to see.
+ c = input_readch(i == 1);
if ((!wchar_private(c)) && (c>31) && (c != 127))
{
arr[i]=c;