From 15148a5e6de8b37a245a0682289f5c0ba0d05b53 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 1 Sep 2019 16:10:17 +0200 Subject: [PATCH] search: after search-at-startup, store the column (for vertical movement) This fixes https://savannah.gnu.org/bugs/?56846. --- src/nano.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nano.c b/src/nano.c index 7c33603f..10b70fb2 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2636,6 +2636,7 @@ int main(int argc, char **argv) not_found_msg(searchstring); else if (lastmessage == HUSH) wipe_statusbar(); + openfile->placewewant = xplustabs(); if (ISSET(USE_REGEXP)) tidy_up_after_search(); free(last_search);