moving: set the preferred column properly when doing a smart home

This fixes http://savannah.gnu.org/bugs/?52042.
Reported-by: Mike Frysinger <vapier@gentoo.org>
master
David Lawrence Ramsey 2017-09-15 13:38:20 -05:00 committed by Benno Schulenberg
parent c8363a0d0b
commit 5f70229c7e
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ void do_home(void)
openfile->current_x = 0;
if (moved_off_chunk)
openfile->placewewant = 0;
openfile->placewewant = xplustabs();
/* If we changed chunk, we might be offscreen. Otherwise,
* update current if the mark is on or we changed "page". */