search: always go forward by default, also when coming from Goto-Line

This fixes https://savannah.gnu.org/bugs/?53735.
master
Benno Schulenberg 2018-04-24 13:11:41 +02:00
parent f05874ea23
commit d0f37205af
1 changed files with 1 additions and 0 deletions

View File

@ -775,6 +775,7 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
}
if (func_from_key(&i) == flip_goto) {
UNSET(BACKWARDS_SEARCH);
/* Retain what the user typed so far and switch to searching. */
search_init(FALSE, TRUE);
return;