mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Ticket #1451: Incorrect charset menu location for 'Long file list' lising mode.
In 'Long file list' the panel width is equal to the screen width. In this case, choose charset menu is placed in the center of the screen. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cd27ee24df
commit
b04d568620
@ -2683,7 +2683,9 @@ set_panel_encoding (WPanel *panel)
|
|||||||
offset = (get_current_index () != 0) ? panel->widget.lines : -panel->widget.lines;
|
offset = (get_current_index () != 0) ? panel->widget.lines : -panel->widget.lines;
|
||||||
r = select_charset (0, offset, source_codepage, FALSE);
|
r = select_charset (0, offset, source_codepage, FALSE);
|
||||||
} else {
|
} else {
|
||||||
offset = (get_current_index () != 0) ? panel->widget.cols : -panel->widget.cols;
|
offset = (panel->widget.cols == COLS) ? 0
|
||||||
|
: (get_current_index () != 0) ? panel->widget.cols
|
||||||
|
: -panel->widget.cols;
|
||||||
r = select_charset (offset, 0, source_codepage, FALSE);
|
r = select_charset (offset, 0, source_codepage, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user