diff --git a/src/gmnlm.c b/src/gmnlm.c

index ac0e77f64a548dae0d579168150a38402871605d..2e41647b33eae2d177efdf4d329502bfe04c4df6 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -1093,11 +1093,11 @@ bool searching = browser->searching;

if (searching) {

out = fopen("/dev/null", "w+");

}

+ bool alttext_printed = false;

fprintf(out, "\n");

char *text = NULL;

int row = 0, col = 0;

- bool alttext_printed = false;

struct gemini_token tok;

struct link **next = &browser->links;

// When your screen is too narrow, more lines will be used for helptext and URL.

@@ -1214,9 +1214,9 @@ while (col >= ws.ws_col) {

col -= ws.ws_col;

++row;

}

+ fprintf(out, ANSI_COLOR_RESET);

++row; col = 0;

- fprintf(out, ANSI_COLOR_RESET);

if (browser->pagination && row >= ws.ws_row - info_rows) {

char prompt[4096];

char *end = NULL;