mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 13:02:01 +03:00
Ticket #2107: viewer: enable left/right scrolling in wrap mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
fa5303329a
commit
79a91164c3
@ -173,10 +173,6 @@ mcview_move_left (mcview_t * view, off_t columns)
|
|||||||
if (old_cursor > 0 || view->hexedit_lownibble)
|
if (old_cursor > 0 || view->hexedit_lownibble)
|
||||||
view->hexedit_lownibble = !view->hexedit_lownibble;
|
view->hexedit_lownibble = !view->hexedit_lownibble;
|
||||||
}
|
}
|
||||||
else if (view->text_wrap_mode)
|
|
||||||
{
|
|
||||||
/* nothing to do */
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (view->dpy_text_column >= columns)
|
if (view->dpy_text_column >= columns)
|
||||||
@ -207,10 +203,6 @@ mcview_move_right (mcview_t * view, off_t columns)
|
|||||||
if (old_cursor < last_byte || !view->hexedit_lownibble)
|
if (old_cursor < last_byte || !view->hexedit_lownibble)
|
||||||
view->hexedit_lownibble = !view->hexedit_lownibble;
|
view->hexedit_lownibble = !view->hexedit_lownibble;
|
||||||
}
|
}
|
||||||
else if (view->text_wrap_mode)
|
|
||||||
{
|
|
||||||
/* nothing to do */
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
view->dpy_text_column += columns;
|
view->dpy_text_column += columns;
|
||||||
|
Loading…
Reference in New Issue
Block a user