Do not ignore the "off" flag when checking if a pane should be stopped,
authornicm <nicm@openbsd.org>
Tue, 19 Jul 2022 07:10:13 +0000 (07:10 +0000)
committernicm <nicm@openbsd.org>
Tue, 19 Jul 2022 07:10:13 +0000 (07:10 +0000)
GitHub issue 3250.

usr.bin/tmux/server-client.c

index 046f8ec..b550032 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.396 2022/07/06 08:31:59 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.397 2022/07/19 07:10:13 nicm Exp $ */
 
 /*
  * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2221,7 +2221,8 @@ server_client_check_pane_buffer(struct window_pane *wp)
                }
                wpo = control_pane_offset(c, wp, &flag);
                if (wpo == NULL) {
-                       off = 0;
+                       if (!flag)
+                               off = 0;
                        continue;
                }
                if (!flag)