add check option persistent_selection if persistent_selection = 0 Tab shift block

This commit is contained in:
Ilia Maslakov 2009-05-11 11:34:22 +00:00
parent 8f7d6de326
commit 6a5dab64fe

View File

@ -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);