prompt-toolkit / pyvim

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

Visual select behaves strangely #49

Open lunemec opened 9 years ago

lunemec commented 9 years ago

Goto pyvim/commands/grammar.py:34 Take cursor to column 41, press v and try to select the line to the beggining with b. It de-selects the last >!?) characters and when you yank them, they're not there. This is not the first time I noticed this, this happens in other files too.

screenshot from 2015-05-01 20 11 48

lunemec commented 9 years ago

Another example: write this text:

in_navigation_mode

Go to beginning and press ve. It selects only to the letter d.

lunemec commented 9 years ago

Also the yank is missing the last letter. Use the same word from previous comment and press viw to select visually the word. Then press y. Then create another line and press p. The pasted word is missing last letter. This may be caused by the yank, it sould count the letter below the cursor as being visually selected as well, I think this does not happen.

jonathanslenders commented 9 years ago

Ok. also clearly a bug. Should be fixed. Thanks!