startup: for +/string, center the found occurrence when possible
This places the cursor in a more predictable position. This fixes https://savannah.gnu.org/bugs/?63223. Issue existed since version 4.4, commit a9dd73fb, since the +/string feature was introduced.
This commit is contained in:
parent
c3a453512a
commit
9875311bcc
@ -2492,6 +2492,7 @@ int main(int argc, char **argv)
|
|||||||
else if (lastmessage <= REMARK)
|
else if (lastmessage <= REMARK)
|
||||||
wipe_statusbar();
|
wipe_statusbar();
|
||||||
openfile->placewewant = xplustabs();
|
openfile->placewewant = xplustabs();
|
||||||
|
adjust_viewport(CENTERING);
|
||||||
if (ISSET(USE_REGEXP))
|
if (ISSET(USE_REGEXP))
|
||||||
tidy_up_after_search();
|
tidy_up_after_search();
|
||||||
free(last_search);
|
free(last_search);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user