m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-12 05:13:49 -05:00

Fix nil string error

This commit is contained in:
Junegunn Choi
2013-10-29 16:48:26 +09:00
parent 856dad4ac8
commit 97b3f33919

4
fzf
View File

@@ -167,7 +167,7 @@ def cursor_y; C.lines - 1; end
def cprint str, col def cprint str, col
C.attron(col) do C.attron(col) do
C.addstr str C.addstr str
end end if str
end end
def print_input def print_input
@@ -443,7 +443,7 @@ searcher = Thread.new {
C.addstr line[0, b] C.addstr line[0, b]
cprint line[b...e], color(chosen ? :match! : :match, chosen) cprint line[b...e], color(chosen ? :match! : :match, chosen)
C.attron basic C.attron basic
C.addstr line[e..-1] C.addstr line[e..-1] || ''
else else
C.addstr line C.addstr line
end end