From 9c0aeaff40c430ab20c434414ecb5c60fb9a584e Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 19 Jan 2026 08:20:51 +0000 Subject: [PATCH] Now the copy mode indicator can be changed, we need to redraw it when the cursor is moved. GitHub issue 4774. --- window-copy.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/window-copy.c b/window-copy.c index 87d0dea8..82c0f47f 100644 --- a/window-copy.c +++ b/window-copy.c @@ -3237,6 +3237,15 @@ window_copy_command(struct window_mode_entry *wme, struct client *c, window_pane_reset_mode(wp); else if (action == WINDOW_COPY_CMD_REDRAW) window_copy_redraw_screen(wme); + else if (action == WINDOW_COPY_CMD_NOTHING) { + /* + * Nothing is not actually nothing - most commands at least + * move the cursor (what would be the point of a command that + * literally does nothing?) and in that case we need to redraw + * the first line to update the indicator. + */ + window_copy_redraw_lines(wme, 0, 1); + } } static void