m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 23:33:39 -05:00

Ignore NULL byte before CSI 6N response

Close #2455
This commit is contained in:
Junegunn Choi
2025-02-16 21:13:00 +09:00
parent 38e4020aa8
commit 1eafc4e5d9

View File

@@ -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() {