Fix exception on CLEAR_LINE when cursor is not at end of line.
Fix exception on CLEAR_LINE when cursor is not at end of line.

ctubbsii/jline2,fantasy86/jline2,msaxena2/jline2,DALDEI/jline2,kaulkie/jline2,scala/scala-jline,cosmin/jline2,tkruse/jline2,scala/scala-jline,renew-tgi/jline2