From 6a5dab64fe115aa09497c203a235d8f5429103cd Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Mon, 11 May 2009 11:34:22 +0000 Subject: [PATCH] add check option persistent_selection if persistent_selection = 0 Tab shift block --- edit/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/edit.c b/edit/edit.c index 91d66e601..77f64ef16 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -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);