mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
add check option persistent_selection if persistent_selection = 0 Tab shift block
This commit is contained in:
parent
8f7d6de326
commit
6a5dab64fe
@ -2641,7 +2641,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
||||
|
||||
case CK_Tab:
|
||||
/* if text marked shift block */
|
||||
if (edit->mark1 != edit->mark2) {
|
||||
if ( edit->mark1 != edit->mark2 && !option_persistent_selections ) {
|
||||
edit_move_block_to_right (edit);
|
||||
} else {
|
||||
edit_tab_cmd (edit);
|
||||
@ -2801,7 +2801,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
||||
break;
|
||||
case CK_Complete_Word:
|
||||
/* if text marked shift block */
|
||||
if (edit->mark1 != edit->mark2) {
|
||||
if ( edit->mark1 != edit->mark2 && !option_persistent_selections ) {
|
||||
edit_move_block_to_left (edit);
|
||||
} else {
|
||||
edit_complete_word_cmd (edit);
|
||||
|
Loading…
Reference in New Issue
Block a user