Handle case of last line, delete it instead of just truncate it, in removeLine method.
Added getLineHandleStyles to get styles from codemirror.