Skip to content

Commit

Permalink
fix multi-line query slow pasting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-mu committed Nov 18, 2022
1 parent ada100c commit 8351760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/shell/linenoise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ int linenoiseEditInsert(struct linenoiseState* l, char c) {
if (write(l->ofd, &d, 1) == -1)
return -1;
}
if (!pastedInput(l->ifd)) {
if (!pastedInput(l->ifd) && !inputLeft) {
refreshLine(l);
}
} else {
Expand Down

0 comments on commit 8351760

Please sign in to comment.