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:
Ilia Maslakov 2009-05-11 17:59:57 +00:00
commit 25d5ed8c6a

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