forked from test34/can_wizard
fix console stuck in auto test
This commit is contained in:
parent
0ca67d25a1
commit
bd68a7d453
1 changed files with 1 additions and 1 deletions
|
@ -991,7 +991,7 @@ char *linenoiseEditFeed(struct linenoiseState *l) {
|
|||
nread = fread(&c, 1, 1, stdin);
|
||||
if (nread <= 0) return NULL;
|
||||
// FIXME: line printed twice after pasting something
|
||||
if ( (getMillis() - t1) < LINENOISE_PASTE_KEY_DELAY ) {
|
||||
if ( (getMillis() - t1) < LINENOISE_PASTE_KEY_DELAY && c != ENTER) {
|
||||
/* Pasting data, insert characters without formatting.
|
||||
* This can only be performed when the cursor is at the end of the
|
||||
* line. */
|
||||
|
|
Loading…
Reference in a new issue