XVim icon indicating copy to clipboard operation
XVim copied to clipboard

Replacing the last characters of a line works incorrectly.

Open yixiang opened this issue 8 years ago • 3 comments

Description

Select and replace last characters of a line works incorrectly. Instead of appending the register content after the last character, it inserts the characters before the last character.

Operation

Say we have a line of code like this: int var;

  1. Copy `int' so we have something in the register
  2. Select ar;
  3. Hit key 'p'.
  4. The result becomes int intv.

Expected behaviour

The replacement result should be int vint.

yixiang avatar Aug 01 '17 22:08 yixiang

I believe this is a duplicate of #1047 (but better title)

mossheim avatar Aug 01 '17 23:08 mossheim

Thanks for pointing out #1047. The nature of the problem is with the location of the selection in the line, not the content of the selection.

tnadmin avatar Aug 02 '17 01:08 tnadmin

@lyxera yes that is true (see my comment on that issue). one of them should be closed.

mossheim avatar Aug 02 '17 01:08 mossheim