Strip null bytes in the string

This commit is contained in:
Junegunn Choi 2013-11-03 22:15:52 +09:00
parent 69d6b58f88
commit 0df647b2a7
1 changed files with 1 additions and 1 deletions

2
fzf
View File

@ -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