Keep characters on resize
Keep characters on resize

Only pop the last characters of every line if they are whitespace. In
addition, removed some redundant code.

jeremyramin/term.js,jeremyramin/term.js