diff --git a/tools/fzf/types.go b/tools/fzf/types.go index 3e52d3c8c..1888fafcb 100644 --- a/tools/fzf/types.go +++ b/tools/fzf/types.go @@ -38,7 +38,7 @@ func check_ascii(bytes []byte) (ascii_until int) { } // Handle remaining bytes for ; i < slen; i++ { - if bytes[i] > 127 { + if bytes[i]&utf8.RuneSelf != 0 { return i } }