Write padding character into the right position.
authornicm <nicm@openbsd.org>
Thu, 21 Mar 2024 12:10:57 +0000 (12:10 +0000)
committernicm <nicm@openbsd.org>
Thu, 21 Mar 2024 12:10:57 +0000 (12:10 +0000)
usr.bin/tmux/screen-write.c

index 71b7f99..350ff67 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.224 2023/10/30 16:05:30 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.225 2024/03/21 12:10:57 nicm Exp $ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2051,7 +2051,7 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc)
        /* Set the new cell. */
        grid_view_set_cell(gd, cx - n, cy, &last);
        if (force_wide)
-               grid_view_set_padding(gd, cx, cy);
+               grid_view_set_padding(gd, cx - 1, cy);
 
        /*
         * Redraw the combined cell. If forcing the cell to width 2, reset the