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:
Andrew Borodin 2009-09-23 10:04:39 +04:00
parent cd27ee24df
commit b04d568620

View File

@ -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);
} }