ref: a9bb2f8762610797c91392d936d894fa5232c28a
parent: dd220a85bad4f7f11132cb503ee841a373b81575
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jun 12 19:24:35 EDT 2017
Fix redraw on resize issues.
--- a/irc.myr
+++ b/irc.myr
@@ -52,11 +52,12 @@
cli = mkclient()
while true
- c = curchan(cli)
redraw(cli)
+ c = curchan(cli)
fd = poll(cli)
if fd < 0
- continue
+ /* we can get interrupted by sigwinch */
+ termdraw.checksize(cli.term)
elif fd == std.In
terminput(cli, c)
else
--
⑨