1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[ecmascript] Do not rewrite html when testing

This commit is contained in:
Witold Filipczyk 2024-04-12 16:17:41 +02:00
parent 5f74bdd539
commit 3f9af02ff6

View File

@ -275,7 +275,7 @@ check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
#ifdef ECMASCRIPT_DEBUG #ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s %s %d\n", __FILE__, __FUNCTION__, text, interpreter->changed); fprintf(stderr, "%s:%s %s %d\n", __FILE__, __FUNCTION__, text, interpreter->changed);
#endif #endif
if (interpreter->changed) { if (interpreter->changed && !get_cmd_opt_bool("test")) {
struct document_view *doc_view = interpreter->vs->doc_view; struct document_view *doc_view = interpreter->vs->doc_view;
struct document *document = doc_view->document; struct document *document = doc_view->document;
struct session *ses = doc_view->session; struct session *ses = doc_view->session;