Tricket #3761: mcedit: wrong deletion of marked column.
commitb50470f0671e7e2a10fea5a27ce04e742e0818bc
authorAndrew Borodin <aborodin@vmail.ru>
Wed, 29 Nov 2023 18:14:40 +0000 (29 21:14 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 31 Dec 2023 16:19:50 +0000 (31 19:19 +0300)
treed2b88848d9bf5274119d72071133f9eb3fe6970b
parent15419524e87547bb07d8967cc1a875789720e102
Tricket #3761: mcedit: wrong deletion of marked column.

If mark column (Shitf+F3) and select the column from left to right, from
up to down, it can be properly deleted later with F8.
But if select it from right to left, from up to down, erasing with F8
keeps the first line of the selected block.

Solution: don't call eval_marks() several times while deleting vertical
block.

  * (edit_block_delete_cmd): calculate mark positions here and pass them...
  * (edit_block_delete): ...through here...
  * (edit_delete_column_of_text): ...to here.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/editor/editcmd.c