1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Merge pull request #172 from mtatton/master

[ javascript ] rerender core dumps fix
This commit is contained in:
rkd77 2022-05-25 20:14:54 +02:00 committed by GitHub
commit d9c917b1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -713,9 +713,10 @@ doc_rerender_after_document_update(struct session *ses) {
} }
if (ses->doc_view->document->ecmascript_counter > 0) { if (ses->doc_view->document->ecmascript_counter > 0) {
if (ses->doc_view->vs) { if (ses->doc_view->vs) {
ses->doc_view->vs->plain = !ses->doc_view->vs->plain; // issue #171 : sess-doc_view incorrectly set, disabling
//ses->doc_view->vs->plain = !ses->doc_view->vs->plain;
draw_formatted(ses, 1); draw_formatted(ses, 1);
ses->doc_view->vs->plain = !ses->doc_view->vs->plain; //ses->doc_view->vs->plain = !ses->doc_view->vs->plain;
draw_formatted(ses, 1); draw_formatted(ses, 1);
//DBG("REDRAWING..."); //DBG("REDRAWING...");
} }