Skip to content
Snippets Groups Projects
Commit 97b3f339 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix nil string error

parent 856dad4a
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ def cursor_y; C.lines - 1; end
def cprint str, col
C.attron(col) do
C.addstr str
end
end if str
end
def print_input
......@@ -443,7 +443,7 @@ searcher = Thread.new {
C.addstr line[0, b]
cprint line[b...e], color(chosen ? :match! : :match, chosen)
C.attron basic
C.addstr line[e..-1]
C.addstr line[e..-1] || ''
else
C.addstr line
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment