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

Strip null bytes in the string

parent 69d6b58f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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