prompt-toolkit / pyvim

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

Ctrl+t does strange things #56

Closed lunemec closed 9 years ago

lunemec commented 9 years ago

I'm not sure what is supposed to do, but when you apply it on line that has correct indent:

def _(attr):

it creates:

de f_(attr):

I'm not sure if this is desired behavior.

jonathanslenders commented 9 years ago

I think in insert mode, in indents, while in navigation mode it still replaces the last two characters before the cursor. That's what GNU readline does, but we shouldn't do that.

jonathanslenders commented 9 years ago

Fixed: https://github.com/jonathanslenders/pyvim/commit/1fdd937b4cb1592703b66c59247358c2473f4104