ref: 9893a823a6d9046ba646d3a6034c36111ce0032f
parent: 15b9d1f9b76b6c3b0240f535c452b4023353b227
author: james palmer <[email protected]>
date: Wed Jun 2 13:35:39 EDT 2021
oops.
--- a/window.c
+++ b/window.c
@@ -80,13 +80,18 @@
}
void
-winappend(Win *w, char *fmt, ...)
+winerror(Win *w, char *fmt, ...)
{
+ int fd;
va_list args;
+ fd = winopen(w, "body", OWRITE);
+
va_start(args, fmt);
- vfprint(w->body, fmt, args);
+ vfprint(fd, fmt, args);
va_end(args);
+
+ close(fd);
}
void