mirror of
https://github.com/tmux/tmux.git
synced 2026-07-22 08:51:17 +00:00
Clear the "waiting for editor" area before writing so stray characters
aren't visible from underneath.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: window-buffer.c,v 1.50 2026/07/14 17:17:18 nicm Exp $ */
|
||||
/* $OpenBSD: window-buffer.c,v 1.51 2026/07/15 12:45:39 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -525,6 +525,8 @@ window_buffer_draw_waiting(struct window_buffer_modedata *data)
|
||||
screen_write_start(&ctx, s);
|
||||
screen_write_cursormove(&ctx, x, y, 0);
|
||||
screen_write_box(&ctx, box_w, box_h, BOX_LINES_DEFAULT, &gc, NULL);
|
||||
screen_write_cursormove(&ctx, x + 1, y + 1, 0);
|
||||
screen_write_clearcharacter(&ctx, box_w - 2, gc.bg);
|
||||
screen_write_cursormove(&ctx, text_x, y + 1, 0);
|
||||
screen_write_nputs(&ctx, box_w - 2, &gc, "%s", text);
|
||||
screen_write_stop(&ctx);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: window-customize.c,v 1.34 2026/07/14 17:17:18 nicm Exp $ */
|
||||
/* $OpenBSD: window-customize.c,v 1.35 2026/07/15 12:45:39 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -397,6 +397,8 @@ window_customize_draw_waiting(struct window_customize_modedata *data)
|
||||
screen_write_start(&ctx, s);
|
||||
screen_write_cursormove(&ctx, x, y, 0);
|
||||
screen_write_box(&ctx, box_w, box_h, BOX_LINES_DEFAULT, &gc, NULL);
|
||||
screen_write_cursormove(&ctx, x + 1, y + 1, 0);
|
||||
screen_write_clearcharacter(&ctx, box_w - 2, gc.bg);
|
||||
screen_write_cursormove(&ctx, text_x, y + 1, 0);
|
||||
screen_write_nputs(&ctx, box_w - 2, &gc, "%s", text);
|
||||
screen_write_stop(&ctx);
|
||||
|
||||
Reference in New Issue
Block a user