mirror of
https://github.com/tmux/tmux.git
synced 2026-10-15 07:44:24 +00:00
Restructure a little bit of code.
This commit is contained in:
11
tty-draw.c
11
tty-draw.c
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: tty-draw.c,v 1.18 2026/10/12 15:28:45 nicm Exp $ */
|
/* $OpenBSD: tty-draw.c,v 1.19 2026/10/13 22:44:53 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2026 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2026 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -260,15 +260,14 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
|
|||||||
} else {
|
} else {
|
||||||
/* Get the current cell. */
|
/* Get the current cell. */
|
||||||
grid_view_get_cell(gd, px + i, py, &gc);
|
grid_view_get_cell(gd, px + i, py, &gc);
|
||||||
|
gcp = &gc;
|
||||||
|
|
||||||
/* Work out empty cells. */
|
/* Work out empty cells. */
|
||||||
empty = tty_draw_line_get_empty(&gc, &last,
|
empty = tty_draw_line_get_empty(gcp, &last,
|
||||||
nx - i);
|
nx - i);
|
||||||
if (empty != 0)
|
if (empty == 0) {
|
||||||
gcp = &gc;
|
|
||||||
else {
|
|
||||||
/* Update for codeset if needed. */
|
/* Update for codeset if needed. */
|
||||||
gcp = tty_check_codeset(tty, &gc);
|
gcp = tty_check_codeset(tty, gcp);
|
||||||
|
|
||||||
/* And for selection. */
|
/* And for selection. */
|
||||||
if (gcp->flags & GRID_FLAG_SELECTED) {
|
if (gcp->flags & GRID_FLAG_SELECTED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user