about summary refs log tree commit diff stats
path: root/src/GridText.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2024-03-21 08:19:13 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2024-03-21 08:20:16 +0000
commit3d3885fb9f3b182a8173a424622a46ac3b9b4a34 (patch)
treeea31000ebe64e3d62146e0e9e46cac706d9acf3f /src/GridText.c
parent1743c6cf472c71de8ecbcbcfed7966be34a11743 (diff)
downloadlynx-snapshots-3d3885fb9f3b182a8173a424622a46ac3b9b4a34.tar.gz
snapshot of project "lynx", label v2-9-0e
Diffstat (limited to 'src/GridText.c')
-rw-r--r--src/GridText.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/GridText.c b/src/GridText.c
index 806a0533..999afc76 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: GridText.c,v 1.347 2024/01/15 19:11:55 Gisle.Vanem Exp $
+ * $LynxId: GridText.c,v 1.348 2024/03/18 07:57:58 tom Exp $
  *
  *		Character grid hypertext object
  *		===============================
@@ -6002,7 +6002,7 @@ static void HText_trimHightext(HText *text,
 			       int final,
 			       int stop_before)
 {
-    int cur_line, cur_shift;
+    int cur_line;
     TextAnchor *anchor_ptr;
     TextAnchor *prev_a = NULL;
     HTLine *line_ptr;
@@ -6097,7 +6097,6 @@ static void HText_trimHightext(HText *text,
 		anchor_ptr->number,
 		anchor_ptr->extent));
 
-	cur_shift = 0;
 	/*
 	 * Strip off any spaces or SpecialAttrChars at the beginning,
 	 * if they exist, but only on HYPERTEXT_ANCHORS.
@@ -6108,7 +6107,6 @@ static void HText_trimHightext(HText *text,
 		   IsSpecialAttrChar(ch)) {
 		anchor_ptr->line_pos++;
 		anchor_ptr->extent--;
-		cur_shift++;
 		ch = UCH(line_ptr->data[anchor_ptr->line_pos]);
 	    }
 	}