1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Fix handling arrow keys when waiting for key press
Author: Joe Lim
Origin: upstream
Bug: https://github.com/gokcehan/lf/issues/1955
Applied-Upstream: https://github.com/gokcehan/lf/commit/841cc3da063cee4005c10e8deae434ce71ec98d8
Reviewed-by: Nick Morrott <nickm@debian.org>
Last-Update: 2025-05-04
---
--- a/ui.go
+++ b/ui.go
@@ -1587,7 +1587,7 @@
}
defer term.Restore(int(os.Stdin.Fd()), oldState)
- b := make([]byte, 1)
+ b := make([]byte, 8)
os.Stdin.Read(b)
}
|