mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Fix some customize mode drawing nits.
This commit is contained in:
parent
a61cbf1c33
commit
5e97d79eb1
@ -278,7 +278,7 @@ key_bindings_init(void)
|
||||
"bind -N 'Toggle the marked pane' m select-pane -m",
|
||||
"bind -N 'Select the next window' n next-window",
|
||||
"bind -N 'Select the next pane' o select-pane -t:.+",
|
||||
"bind -N 'Customizeoptions' C customize-mode",
|
||||
"bind -N 'Customize options' C customize-mode",
|
||||
"bind -N 'Select the previous pane' p previous-window",
|
||||
"bind -N 'Display pane numbers' q display-panes",
|
||||
"bind -N 'Redraw the current client' r refresh-client",
|
||||
|
@ -708,7 +708,8 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
else
|
||||
screen_write_puts(&ctx, &gc0, "active");
|
||||
screen_write_puts(&ctx, &gc0, ") ");
|
||||
}
|
||||
} else
|
||||
screen_write_puts(&ctx, &gc0, " ");
|
||||
}
|
||||
free(text);
|
||||
|
||||
|
@ -428,7 +428,7 @@ screen_write_text(struct screen_write_ctx *ctx, u_int width, u_int lines,
|
||||
idx = next;
|
||||
}
|
||||
|
||||
screen_write_cursormove(ctx, cx, s->cy + 1, 0);
|
||||
screen_write_cursormove(ctx, cx, s->cy, 0);
|
||||
free(text);
|
||||
}
|
||||
|
||||
|
@ -492,6 +492,9 @@ window_customize_draw(void *modedata, void *itemdata,
|
||||
else
|
||||
text = oe->text;
|
||||
screen_write_text(ctx, sx, sy, &grid_default_cell, "%s", text);
|
||||
if (s->cy >= cy + sy - 1)
|
||||
goto out;
|
||||
screen_write_cursormove(ctx, s->cx, s->cy + 1, 0);
|
||||
if (s->cy >= cy + sy - 1)
|
||||
goto out;
|
||||
|
||||
@ -524,6 +527,9 @@ window_customize_draw(void *modedata, void *itemdata,
|
||||
if (s->cy > cy + sy - 1)
|
||||
goto out;
|
||||
}
|
||||
screen_write_cursormove(ctx, s->cx, s->cy + 1, 0);
|
||||
if (s->cy >= cy + sy - 1)
|
||||
goto out;
|
||||
|
||||
value = options_to_string(o, idx, 0);
|
||||
if (oe != NULL && idx == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user