Closes #145.
Implements it fully, also fixes the bug for deleting all text.