mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #2164: clarify cursor position in mcviewer.
When viewing a file, the cursor's position is different in the slang and ncurses builds. With slang, the cursor is in the upper right corner, on the percent sign. With ncurses, the cursor wraps around to the beginning of the next line, that is, the top left corner of the actual file contents viewing area. In this commit, cursor is moved to upper right corner unconditionally after print of percentage value. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
805bb61c2a
commit
e066a25cc5
@ -420,6 +420,8 @@ mcview_percent (mcview_t * view, off_t p)
|
||||
|
||||
widget_move (view, top, right - 4);
|
||||
tty_printf ("%3d%%", percent);
|
||||
/* avoid cursor wrapping in NCurses-base MC */
|
||||
widget_move (view, top, right - 1);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user