Skip to content

Commit

Permalink
Don't print "skipping" message or tildes when
Browse files Browse the repository at this point in the history
repainting via --redraw-on-quit.
  • Loading branch information
gwsw committed Dec 14, 2021
1 parent 6830b87 commit f90a807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion forwback.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public int screen_trashed;
public int squished;
public int no_back_scroll = 0;
public int forw_prompt;
public int first_time = 1;

extern int sigs;
extern int top_scroll;
Expand Down Expand Up @@ -227,7 +228,6 @@ forw(n, pos, force, only_last, nblank)
{
int nlines = 0;
int do_repaint;
static int first_time = 1;

squish_check();

Expand Down
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ extern int no_init;
extern int errmsgs;
extern int redraw_on_quit;
extern int term_init_done;
extern int first_time;

/*
* Entry point.
Expand Down Expand Up @@ -422,6 +423,7 @@ quit(status)
* alternate screen, which now (since deinit) cannot be seen.
* redraw_on_quit tells us to redraw it on the main screen.
*/
first_time = 1; /* Don't print "skipping" or tildes */
repaint();
flush();
}
Expand Down

0 comments on commit f90a807

Please sign in to comment.