Small but useful (final) change.
Using brief_select_line doesn't require LINE selections anymore.
Any selection 'marking' some lines (e.g. a BLOCK selection) will do. (The current line is duplicated if nothing is selected as before.)
_command void dupl () name_info(','VSARG2_MARK|VSARG2_TEXT_BOX|VSARG2_REQUIRES_EDITORCTL)
{
if ( !select_active () ) select_line();
else _select_type("",'T','LINE');
end_select();
_copy_to_cursor()
deselect();
// optionally go to the beginning of the dup'd lines
// down(); first_non_blank();
}
HS2
Edit: Sorry - prev. version was broken (for line selections !) - fixed.