aboutsummaryrefslogtreecommitdiff
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 17:01:36 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 17:01:36 +0100
commit8110c7a25f257b13f92f34559efedba204e6ea98 (patch)
tree1a27040ddeb828a865b28323ee4516f053292591 /server-fn.c
parentdbebdb2d364feea4df958528ee1dcacbb9933e37 (diff)
downloadrtmux-8110c7a25f257b13f92f34559efedba204e6ea98.tar.gz
rtmux-8110c7a25f257b13f92f34559efedba204e6ea98.tar.bz2
rtmux-8110c7a25f257b13f92f34559efedba204e6ea98.zip
Do not hoke into struct window_pane from the tty code and instead set
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c
index 815d25e2..127afb6b 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -319,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);