shithub: drawterm

Download patch

ref: b5df2820e20709f48d2c4ce19fecb27e2f0d2105
parent: 69161a85c9a2ba11aeee2d2cfe151b12248597a0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Nov 23 18:16:10 EST 2017

gui-x11: reset screenputs before panicing with x i/o error

--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -317,6 +317,7 @@
 static int
 panicshutup(XDisplay *d)
 {
+	screenputs = 0;
 	panic("x error");
 	return -1;
 }