Strip null bytes in the string

pull/4/head
Junegunn Choi 11 years ago
parent 69d6b58f88
commit 0df647b2a7

2
fzf

@ -167,7 +167,7 @@ def max_items; C.lines - 2; end
def cursor_y; C.lines - 1; end
def cprint str, col
C.attron(col) do
C.addstr str
C.addstr str.gsub("\0", '')
end if str
end

Loading…
Cancel
Save