Fix the last part of bug #10464 with mouse highlight at end of line.