Closed aidancz closed 1 week ago
Thanks for the issue!
Can reproduce this. I vaguely remember that I tried to support all 'virtualedit' values (as there are tests for virtualedit=block
and block mode) but maybe opted out to not support some edge cases as it would require some non-trivial code. I'll take a look.
This now should be fixed on latest main
. And the fix proved to be half a line long with a pretty intuitive explanation (whether cursor position is a charwise edge should always be false
in case of virtualedit=all
, as there is no "edge" in this case).
Plus there are now tests for all 'virtualedit' values in most common issue-inducing scenarios.
Thanks again for finding it!
Contributing guidelines
Module(s)
mini.operators
Description
with
virtualedit=all
, the behaviour of replacing the last word with register is wrongNeovim version
0.10.1
Steps to reproduce
set virtualedit=all
press
yiwwgriw
Expected behavior
the text becomes
vanilla vanilla
Actual behavior
the text becomes
vanilla vanilla
(there are 2 spaces)