summaryrefslogtreecommitdiff
path: root/src/tui/light.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-16 21:13:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-16 21:18:01 +0900
commit1eafc4e5d917e3b77f18807337b4ad770048a22a (patch)
tree4a7e23bffd8eee79150ae8cce8ee7378bc60a732 /src/tui/light.go
parent38e4020aa86b806cab988d5b26ac16af94d2bd29 (diff)
downloadfzf-1eafc4e5d917e3b77f18807337b4ad770048a22a.tar.gz
Ignore NULL byte before CSI 6N response
Close #2455
Diffstat (limited to 'src/tui/light.go')
-rw-r--r--src/tui/light.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index ad9e7274..acd07ab7 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -29,7 +29,7 @@ const (
const consoleDevice string = "/dev/tty"
-var offsetRegexp = regexp.MustCompile("(.*)\x1b\\[([0-9]+);([0-9]+)R")
+var offsetRegexp = regexp.MustCompile("(.*?)\x00?\x1b\\[([0-9]+);([0-9]+)R")
var offsetRegexpBegin = regexp.MustCompile("^\x1b\\[[0-9]+;[0-9]+R")
func (r *LightRenderer) Bell() {