summaryrefslogtreecommitdiff
path: root/main/Main.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-06-01 20:52:01 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-06-01 20:52:01 +0200
commitb2319c8084d34edb85e0fee4ca7edcdee0c8aeed (patch)
tree996072d23ee9d714d92279fd1333a68d1afaef13 /main/Main.hs
parent0bd4eadd16658ca589c2641ce5def721b87f4ddc (diff)
Postpone flushing terminal when replacing linesHEADmaster
Diffstat (limited to 'main/Main.hs')
-rw-r--r--main/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/Main.hs b/main/Main.hs
index 4a85f4e..8d7cc08 100644
--- a/main/Main.hs
+++ b/main/Main.hs
@@ -418,7 +418,7 @@ interactiveLoop st opts = withTerminal commandCompletion $ \term -> do
_ <- liftIO $ do
tzone <- getCurrentTimeZone
let self = finalOwner $ headLocalIdentity erebosHead
- watchDirectMessageThreads erebosHead $ \prev cur -> do
+ watchDirectMessageThreads erebosHead $ \prev cur -> holdFlush term $ do
let ( remove, messages ) = dmThreadToListChange prev cur
when (remove > 0) $ do
modifyMVar_ currentLinesVar $ \clines -> if