From 3a161f95765501bff62c9c63dcc8ddb06324aad2 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Tue, 31 Mar 2009 10:39:00 +0000 Subject: [PATCH] fix: problem when flag Persistent selection swiched off then text not marked by F3 + arrows --- edit/edit.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/edit/edit.c b/edit/edit.c index bdbc71061..eb61c29a7 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -2213,6 +2213,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion) edit_find_bracket (edit); return; } + switch (command) { case CK_Begin_Page: case CK_End_Page: @@ -2224,13 +2225,16 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion) case CK_Down: case CK_Left: case CK_Right: - if ( !option_persistent_selections ) { - if (column_highlighting) - edit_push_action (edit, COLUMN_ON); - column_highlighting = 0; - edit_mark_cmd (edit, 1); + if ( edit->mark2 >= 0 ) { + if ( !option_persistent_selections ) { + if (column_highlighting) + edit_push_action (edit, COLUMN_ON); + column_highlighting = 0; + edit_mark_cmd (edit, 1); + } } } + switch (command) { case CK_Begin_Page: case CK_End_Page: