[view_curses] fix for attr ranges that cover tabs