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 */
werase(wresult);
nextline = 1;
/* --- Display the message --- */
if(totallines == 0) { // Its a real message
@ -559,7 +560,7 @@ static inline void display_results() {
/* if this is the first displayed line,
display what will fit on the screen */
if(topref == nextline - 1) {
if(topref == (nextline-1)) {
disprefs++;
/* break out of two loops */
goto endrefs;

View File

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