From 5d7294b80cdee26cb59716b093a5af22aa18df35 Mon Sep 17 00:00:00 2001
From: pbentes <pedrogomes2000.3@gmail.com>
Date: Mon, 5 May 2025 13:11:02 +0100
Subject: [PATCH] Fix?

---
 st.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/st.c b/st.c
index bc2e790..c7bb394 100644
--- a/st.c
+++ b/st.c
@@ -671,15 +671,15 @@ highlighturls(void)
 	for (int i = term.top; i < term.bot; i++) {
 		int url_start = -1;
 		for (int j = 0; j < term.col; j++) {
-			if (term.line[i][j].u < 127) {
-				linestr[j] = term.line[i][j].u;
+			if (term.screen[0].buffer[i][j].u < 127) {
+				linestr[j] = term.screen[0].buffer[i][j].u;
 			}
 			linestr[term.col] = '\0';
 		}
 		while ((match = strstrany(linestr + url_start + 1, urlprefixes))) {
 			url_start = match - linestr;
 			for (int c = url_start; c < term.col && strchr(urlchars, linestr[c]); c++) {
-				term.line[i][c].mode |= ATTR_URL;
+				term.screen[0].buffer[i][c].mode |= ATTR_URL;
 				tsetdirt(i, c);
 			}
 		}
@@ -692,7 +692,7 @@ unhighlighturls(void)
 {
 	for (int i = term.top; i < term.bot; i++) {
 		for (int j = 0; j < term.col; j++) {
-			Glyph* g = &term.line[i][j];
+			Glyph* g = &term.screen[0].buffer[i][j];
 			if (g->mode & ATTR_URL) {
 				g->mode &= ~ATTR_URL;
 				tsetdirt(i, j);
@@ -707,8 +707,8 @@ followurl(int x, int y) {
 	char *linestr = calloc(sizeof(char), term.col+1); /* assume ascii */
 	char *match;
 	for (int i = 0; i < term.col; i++) {
-		if (term.line[x][i].u < 127) {
-			linestr[i] = term.line[x][i].u;
+		if (term.screen[0].buffer[x][i].u < 127) {
+			linestr[i] = term.screen[0].buffer[x][i].u;
 		}
 		linestr[term.col] = '\0';
 	}