File: handle-arrow-keys-waiting-key-press

package info (click to toggle)
lf 34%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,296 kB
  • sloc: sh: 126; makefile: 23; csh: 4
file content (19 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
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)
 }