From 4a0c00754011feefcef636f5ff9c3fd6b59bf0e7 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 5 Nov 2023 01:42:25 +0100 Subject: [PATCH] fix yet another issue with set_modify() --- src/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions.c b/src/actions.c index d66e3944..f0210fad 100644 --- a/src/actions.c +++ b/src/actions.c @@ -142,11 +142,10 @@ int set_modify(int mod) { int i, floaters = 0; - dbg(1, "set_modify(): %d, prev_set_modify=%d\n", mod, xctx->prev_set_modify); + dbg(0, "set_modify(): %d, prev_set_modify=%d\n", mod, xctx->prev_set_modify); /* set modify state */ if(mod == 0 || mod == 1) { - xctx->prev_set_modify = xctx->modified; xctx->modified = mod; } if(mod) { @@ -182,6 +181,7 @@ int set_modify(int mod) else tcleval("set_tab_names"); } } + xctx->prev_set_modify = xctx->modified; return floaters; }