lib/textbringer/window.rb in textbringer-1.0.3 vs lib/textbringer/window.rb in textbringer-1.0.4

- old
+ new

@@ -453,10 +453,14 @@ @window.clrtoeol @window.setpos(cury + 1, 0) end end end - @window.addstr(c) + if c == "\uFEFF" + # ncurses on macOS prints U+FEFF as space, so ignore it + else + @window.addstr(c) + end break if newx == columns && cury == lines - 2 @buffer.forward_char end if current? && @buffer.visible_mark @window.attroff(Curses::A_REVERSE)