Implement abortEdit.
Add decorator to check the length of lines.