mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #4617, 4618: mcedit: fix page up/down jumps in window mode.
(edit_execute_cmd): fix number of lines in CK_PageUp and CK_PageDown handling. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
87ff8568c5
commit
c6746b33b8
@ -3681,14 +3681,14 @@ edit_execute_cmd (WEdit *edit, long command, int char_for_insertion)
|
|||||||
MC_FALLTHROUGH;
|
MC_FALLTHROUGH;
|
||||||
case CK_PageUp:
|
case CK_PageUp:
|
||||||
case CK_MarkPageUp:
|
case CK_MarkPageUp:
|
||||||
edit_move_up (edit, w->lines - 1, TRUE);
|
edit_move_up (edit, w->lines - (edit->fullscreen ? 1 : 2), TRUE);
|
||||||
break;
|
break;
|
||||||
case CK_MarkColumnPageDown:
|
case CK_MarkColumnPageDown:
|
||||||
edit->column_highlight = 1;
|
edit->column_highlight = 1;
|
||||||
MC_FALLTHROUGH;
|
MC_FALLTHROUGH;
|
||||||
case CK_PageDown:
|
case CK_PageDown:
|
||||||
case CK_MarkPageDown:
|
case CK_MarkPageDown:
|
||||||
edit_move_down (edit, w->lines - 1, TRUE);
|
edit_move_down (edit, w->lines - (edit->fullscreen ? 1 : 2), TRUE);
|
||||||
break;
|
break;
|
||||||
case CK_MarkColumnLeft:
|
case CK_MarkColumnLeft:
|
||||||
edit->column_highlight = 1;
|
edit->column_highlight = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user