Browse Source

repurpose "nextline"

dev
anon 8 months ago
parent
commit
1d98020b62
2 changed files with 2 additions and 2 deletions
  1. +2
    -1
      src/display.c
  2. +0
    -1
      src/find.c

+ 2
- 1
src/display.c 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;


+ 0
- 1
src/find.c View File

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



Loading…
Cancel
Save