From 4118a4dfc5e9544e325b55151f275ae17e652e2a Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 10 Feb 2022 19:43:29 +0100 Subject: [PATCH] [session] Removed dummy=1 --- src/session/session.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/session/session.c b/src/session/session.c index c6b828ac6..c8d74d179 100644 --- a/src/session/session.c +++ b/src/session/session.c @@ -708,21 +708,16 @@ doc_rerender_after_document_update(struct session *ses) { ** This is toggled */ assert(ses && ses->doc_view && ses->tab && ses->tab->term); - if_assert_failed - { - int dummy=1; - } else { - if (ses->doc_view->document->ecmascript_counter>0) - { - if (ses->doc_view->vs) - { - ses->doc_view->vs->plain = !ses->doc_view->vs->plain; - draw_formatted(ses, 1); - ses->doc_view->vs->plain = !ses->doc_view->vs->plain; - draw_formatted(ses, 1); - //DBG("REDRAWING..."); - } - + if_assert_failed { + return; + } + if (ses->doc_view->document->ecmascript_counter > 0) { + if (ses->doc_view->vs) { + ses->doc_view->vs->plain = !ses->doc_view->vs->plain; + draw_formatted(ses, 1); + ses->doc_view->vs->plain = !ses->doc_view->vs->plain; + draw_formatted(ses, 1); + //DBG("REDRAWING..."); } } }