nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 5f70229c7e8102fced2150e10182766999ecabd4
parent c8363a0d0b53e3d64fe410cd578c316171e3a3ae
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 15 Sep 2017 13:38:20 -0500

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>

Diffstat:
Msrc/move.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/move.c b/src/move.c @@ -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". */