mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Merge branch '344_optional_shift_block'
* 344_optional_shift_block: add check option persistent_selection if persistent_selection = 0 Tab shift block
This commit is contained in:
commit
25d5ed8c6a
@ -2641,7 +2641,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
|||||||
|
|
||||||
case CK_Tab:
|
case CK_Tab:
|
||||||
/* if text marked shift block */
|
/* if text marked shift block */
|
||||||
if (edit->mark1 != edit->mark2) {
|
if ( edit->mark1 != edit->mark2 && !option_persistent_selections ) {
|
||||||
edit_move_block_to_right (edit);
|
edit_move_block_to_right (edit);
|
||||||
} else {
|
} else {
|
||||||
edit_tab_cmd (edit);
|
edit_tab_cmd (edit);
|
||||||
@ -2801,7 +2801,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
|||||||
break;
|
break;
|
||||||
case CK_Complete_Word:
|
case CK_Complete_Word:
|
||||||
/* if text marked shift block */
|
/* if text marked shift block */
|
||||||
if (edit->mark1 != edit->mark2) {
|
if ( edit->mark1 != edit->mark2 && !option_persistent_selections ) {
|
||||||
edit_move_block_to_left (edit);
|
edit_move_block_to_left (edit);
|
||||||
} else {
|
} else {
|
||||||
edit_complete_word_cmd (edit);
|
edit_complete_word_cmd (edit);
|
||||||
|
Loading…
Reference in New Issue
Block a user