fixPosition was using the "tabbed in" index instead of the actual
character index when scanning a line for tabs. This caused incorrect
positioning of the cursor for some errors