repurpose "nextline"

This commit is contained in:
anon 2023-09-05 19:09:19 +02:00
parent 0c7669df6c
commit 1d98020b62
2 changed files with 2 additions and 2 deletions

View File

@ -378,6 +378,7 @@ static inline void display_results() {
char linenum[NUMLEN + 1]; /* line number */ char linenum[NUMLEN + 1]; /* line number */
werase(wresult); werase(wresult);
nextline = 1;
/* --- Display the message --- */ /* --- Display the message --- */
if(totallines == 0) { // Its a real message if(totallines == 0) { // Its a real message
@ -559,7 +560,7 @@ static inline void display_results() {
/* if this is the first displayed line, /* if this is the first displayed line,
display what will fit on the screen */ display what will fit on the screen */
if(topref == nextline - 1) { if(topref == (nextline-1)) {
disprefs++; disprefs++;
/* break out of two loops */ /* break out of two loops */
goto endrefs; goto endrefs;

View File

@ -1278,7 +1278,6 @@ bool search(const char *query) {
cannotopen(temp1); cannotopen(temp1);
return (false); return (false);
} }
nextline = 1;
totallines = 0; totallines = 0;
disprefs = 0; disprefs = 0;