mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
fix: problem when flag Persistent selection swiched off then text not marked
by F3 + arrows
This commit is contained in:
parent
a8eb299506
commit
3a161f9576
14
edit/edit.c
14
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:
|
||||
|
Loading…
Reference in New Issue
Block a user