Bugfix in Document.paste + added protection for Document.lines list (Which should not be modified.)
Bugfix in Document.paste + added protection for Document.lines list (Which should not be modified.)

jonathanslenders/python-prompt-toolkit,melund/python-prompt-toolkit