Ticket #4524: code cleanup before 4.8.32 release.

mcedit: fix losing column position when navigating up/down.
Regression from 49bc0ddebfda91ea90d19b286ca1c2198387cf77.

Closes MidnightCommander/mc#194.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Viktor Szakats 2024-01-29 09:59:03 +00:00 committed by Andrew Borodin
parent 7b3c427c85
commit f3ffb28737

View File

@ -3017,9 +3017,9 @@ edit_move_to_prev_col (WEdit * edit, off_t p)
}
else
{
edit->over_col = 0;
edit->prev_col = edit->curs_col;
edit->curs_col = prev + over;
edit->prev_col = edit->curs_col;
edit->over_col = 0;
}
}
else