From: Chris Allegretta Date: Tue, 26 Mar 2002 17:58:42 +0000 (+0000) Subject: - search.c:do_gotoline() - Set placewewant if we actually move to a different line X-Git-Tag: v1.1.8~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d1c2c1ca76f05e1993d216b861d417ef9cee9349;p=nano.git - search.c:do_gotoline() - Set placewewant if we actually move to a different line git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1150 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index cc85b52d..b878031e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -40,6 +40,8 @@ CVS code - - search.c: search_init() - Fix a missing free (Rocco). + do_gotoline() + - Set placewewant if we actually move to a different line. - utils.c: stristr() - Defined regardless of NANO_SMALL (noticed by Jordi). diff --git a/search.c b/search.c index b96b214b..fdb025d4 100644 --- a/search.c +++ b/search.c @@ -844,6 +844,7 @@ int do_gotoline(int line, int save_pos) else edit_update(current, CENTER); + placewewant = xplustabs(); goto_abort(); return 1; }