don't draw the cursor off the screen

the cursor column can be one past the end of the row if a glyph was
drawn in the last column and then nothing else happened