Author Topic: Enumerate and block selection lost  (Read 1388 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2168
  • Hero Points: 191
  • Text
Enumerate and block selection lost
« on: August 14, 2019, 07:00:08 pm »
Select a 0-width vertical block.
Enumerate - to add a 2 digit decimal
Right cursor -- the selection expands.

But then,
Select a 0-width vertical block.
Type "A_"
Enumerate - to add a 2 digit decimal
Right cursor -- the selection is cleared.

When recording a macro you see this inserts "_deselect"

Code: [Select]
#include "slick.sh"
_command last_recorded_macro() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
    _macro('R',1);
    select_block();
    cursor_up(10);
    execute('gui-enumerate');
    enumerate("1 1 2");
    cursor_right(2);
}

#include "slick.sh"
_command last_recorded_macro() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
    _macro('R',1);
    select_block();
    top_of_buffer();
    cursor_right(4);
    doBlockModeKey('A','A','1');
    doBlockModeKey('_','_','1');
    execute('gui-enumerate');
    enumerate("1 1 2");
    _deselect();
    cursor_right();
}