gcc: fix case when caret points after the end of a previous line