mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-12 08:26:27 +00:00
Ignore UTF-8 Error (#91)
This commit is contained in:
parent
86c73105ee
commit
75b44aac13
2
fzf
2
fzf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user