Clear combine flag when a non-UTF-8 set of characters is encountered.
authornicm <nicm@openbsd.org>
Fri, 1 Sep 2023 16:01:54 +0000 (16:01 +0000)
committernicm <nicm@openbsd.org>
Fri, 1 Sep 2023 16:01:54 +0000 (16:01 +0000)
usr.bin/tmux/screen-write.c

index 957f5be..72c8f3b 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.219 2023/09/01 14:29:11 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.220 2023/09/01 16:01:54 nicm Exp $ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1792,6 +1792,8 @@ screen_write_collect_add(struct screen_write_ctx *ctx,
        u_int                            sx = screen_size_x(s);
        int                              collect;
 
+       ctx->flags &= ~SCREEN_WRITE_COMBINE;
+
        /*
         * Don't need to check that the attributes and whatnot are still the
         * same - input_parse will end the collection when anything that isn't