Fixed selection rendering on lines with tabs

Previously ignored the difference between tab character on the line
and the actual position of tab  on the screen.