aboutsummaryrefslogtreecommitdiff
path: root/server-fn.c
diff options
context:
space:
mode:
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/server-fn.c b/server-fn.c
index da1371ae..127afb6b 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -17,11 +17,9 @@
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/wait.h>
#include <sys/uio.h>
-#include <imsg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -301,6 +299,9 @@ server_destroy_pane(struct window_pane *wp, int notify)
char tim[26];
if (wp->fd != -1) {
+#ifdef HAVE_UTEMPTER
+ utempter_remove_record(wp->fd);
+#endif
bufferevent_free(wp->event);
wp->event = NULL;
close(wp->fd);
@@ -318,7 +319,7 @@ server_destroy_pane(struct window_pane *wp, int notify)
if (notify)
notify_pane("pane-died", wp);
- screen_write_start(&ctx, wp, &wp->base);
+ screen_write_start_pane(&ctx, wp, &wp->base);
screen_write_scrollregion(&ctx, 0, screen_size_y(ctx.s) - 1);
screen_write_cursormove(&ctx, 0, screen_size_y(ctx.s) - 1, 0);
screen_write_linefeed(&ctx, 1, 8);