Ignore UTF-8 Error (#91)

This commit is contained in:
Junegunn Choi 2014-08-16 19:52:56 +09:00
parent 86c73105ee
commit 75b44aac13

2
fzf
View File

@ -1105,7 +1105,7 @@ class FZF
begin begin
unless @delim unless @delim
# AWK default # AWK default
prefix_length = str.index(/\S/) || 0 prefix_length = (str.index(/\S/) rescue 0)|| 0
tokens = str.scan(/\S+\s*/) rescue [] tokens = str.scan(/\S+\s*/) rescue []
else else
prefix_length = 0 prefix_length = 0