prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 160 forks source link

bugfix: application current buffer as editor current_buffer #116

Closed cosven closed 5 years ago

cosven commented 5 years ago

adapt to prompt_toolkit 2.0: return application current buffer as editor current_buffer

jonathanslenders commented 5 years ago

Thanks! This makes sense indeed, but I wonder what functionality was crashing that required this fix.

cosven commented 5 years ago

@jonathanslenders image Pyvim will automatically add space for me at this case, it is very useful when I edit my code. However, I do want delete those trailing whitespace when I finish editing. I try to add a command delete-trailing-whitespace, and this problem stopped me.

I submit another PR here: add command delete-trailing-whitespace