shithub: castor9

Download patch

ref: dfc5c880042c1c61b88a2f3f2eaf344e8fe88684
parent: 8f10b0c5efdf998bd3e6806966d65c738ca183ed
author: Julien Blanchard <[email protected]>
date: Thu Dec 10 04:06:21 EST 2020

Highlight headers

--- a/castor.c
+++ b/castor.c
@@ -197,6 +197,11 @@
 			plrtstr(&c->text, 1000000, 8, 0, font, strdup(cleanup(base)), PL_HEAD, 0);
 			break;
 		}
+		if(strncmp(line, "#", strlen("#")) == 0)
+		{
+			plrtstr(&c->text, 1000000, 8, 0, font, strdup(cleanup(base)), PL_SEL, 0);
+			break;
+        }		
 		if((length <= width))
 		{
 			plrtstr(&c->text, 1000000, 8, 0, font, strdup(cleanup(base)), 0, 0);