From 0df647b2a7ac7279e04d9312f612171f4e57091c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 3 Nov 2013 22:15:52 +0900 Subject: [PATCH] Strip null bytes in the string --- fzf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzf b/fzf index 9ef0fe7..ca9a232 100755 --- a/fzf +++ b/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