mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 12:42:01 -07:00
Add regression test case for #91
This commit is contained in:
5
fzf
5
fzf
@@ -366,7 +366,8 @@ class FZF
|
||||
end if str
|
||||
end
|
||||
def addstr_safe str
|
||||
C.addstr str.gsub("\0", '')
|
||||
str = str.gsub("\0", '') rescue str
|
||||
C.addstr str
|
||||
end
|
||||
|
||||
def print_input
|
||||
@@ -1105,7 +1106,7 @@ class FZF
|
||||
begin
|
||||
unless @delim
|
||||
# AWK default
|
||||
prefix_length = (str.index(/\S/) rescue 0)|| 0
|
||||
prefix_length = (str.index(/\S/) || 0) rescue 0
|
||||
tokens = str.scan(/\S+\s*/) rescue []
|
||||
else
|
||||
prefix_length = 0
|
||||
|
Reference in New Issue
Block a user