Initial experiment in adding js support to w3m.

This commit is contained in:
Storm Dragon
2025-08-16 19:43:11 -04:00
parent e48858127f
commit 6cf0975fe1
82 changed files with 107987 additions and 2842 deletions

View File

@@ -49,6 +49,14 @@ newBuffer(int width)
#endif
n->check_url = MarkAllPages; /* use default from -o mark_all_pages */
n->need_reshape = 1; /* always reshape new buffers to mark URLs */
#ifdef USE_JAVASCRIPT
/* Initialize JavaScript state - but don't create context yet */
n->js_state = NULL;
n->js_document = NULL;
n->js_events = NULL;
#endif
return n;
}