commit 8074234686c8f0cfabb1d92fb522fc297feda42a
parent e67a073b5864be9e8c0360d29e394949d98629cc
Author: phoebos <ben@bvnf.space>
Date: Fri, 19 Jun 2026 09:46:08 +0100
misc
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/xmhtml.c b/xmhtml.c
@@ -174,6 +174,11 @@ anchorCB(Widget widget, XtPointer client_data,
fprintf(stdout, "clicked link \"%s\"\n", cbs->href);
String content = loadFile(cbs->href);
if (content != NULL) {
+ /*
+ if (content[1] == 'p') {
+ printf("got content:\n%s\n", content);
+ }
+ */
history_push(current_page);
free(current_page);
current_page = strdup(cbs->href);
@@ -392,6 +397,12 @@ main(int argc, char **argv)
XmNheight, 500,
NULL);
+ /* Disable warnings (hopefully) */
+ XtVaSetValues(html,
+ XmNdebugDisableWarnings, 1,
+ XmNdebugEnableFullOutput, 0,
+ NULL);
+
history_init();
if(content == NULL)