fix incorrect highlighting when input file starts with line break

fix illegal memory access when input file does not end with line break

(0) -30 -10 -2 +2 +10 tip

mercurial