From a06671b47f0284733c7edf7dae8f22f9758c8393 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 9 Mar 2022 17:02:06 +0900 Subject: [PATCH] Increase TTY buffer limit Kitty's shell intergration generates a long sequence of key presses in certain cases. As long as the length of the sequence is finite, fzf can process it. Close #2748 --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/light.go b/src/tui/light.go index d3e3fab..9711298 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -23,7 +23,7 @@ const ( defaultEscDelay = 100 escPollInterval = 5 offsetPollTries = 10 - maxInputBuffer = 10 * 1024 + maxInputBuffer = 1024 * 1024 ) const consoleDevice string = "/dev/tty"