m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

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
unless @delim
# AWK default
prefix_length = str.index(/\S/) || 0
prefix_length = (str.index(/\S/) rescue 0)|| 0
tokens = str.scan(/\S+\s*/) rescue []
else
prefix_length = 0