intelligent Backspace for line deletion