From 8351760b6ee0002fe3206d32edda9df9c21ba61a Mon Sep 17 00:00:00 2001 From: aziz-mu Date: Fri, 18 Nov 2022 14:29:13 -0500 Subject: [PATCH] fix multi-line query slow pasting issue --- tools/shell/linenoise.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/shell/linenoise.cpp b/tools/shell/linenoise.cpp index 703e17d469..af7eaf0e19 100644 --- a/tools/shell/linenoise.cpp +++ b/tools/shell/linenoise.cpp @@ -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 {