Checks if the start and end character in DeleteOperator is a low surrogate. If it is, then we extend them by using .getLeft() and .getRight() respectively. Here's a comparison (when doing 'x' & 'p' in normal mode):
Behavior before:
After this PR:
Which issue(s) this PR fixes
3070 (step 4 in the issue)
Special notes for your reviewer:
This is already done in YankOperator, I've just added the same check to DeleteOperator
What this PR does / why we need it:
Checks if the
start
andend
character inDeleteOperator
is a low surrogate. If it is, then we extend them by using.getLeft()
and.getRight()
respectively. Here's a comparison (when doing 'x' & 'p' in normal mode):Behavior before:
After this PR:
Which issue(s) this PR fixes
3070 (step 4 in the issue)
Special notes for your reviewer:
This is already done in
YankOperator
, I've just added the same check toDeleteOperator