repurpose "nextline"
This commit is contained in:
parent
0c7669df6c
commit
1d98020b62
@ -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;
|
||||
|
@ -1278,7 +1278,6 @@ bool search(const char *query) {
|
||||
cannotopen(temp1);
|
||||
return (false);
|
||||
}
|
||||
nextline = 1;
|
||||
totallines = 0;
|
||||
disprefs = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user