mirror of
https://github.com/tmux/tmux.git
synced 2025-09-08 02:56:59 +00:00
Merge branch 'obsd-master'
Conflicts: Makefile cmd-server-info.c cmd-start-server.c
This commit is contained in:
@ -345,8 +345,7 @@ window_choose_collapse(struct window_pane *wp, struct session *s)
|
||||
* assign the actual result we want to render and copy the new one over
|
||||
* the top of it.
|
||||
*/
|
||||
for (i = 0; i < ARRAY_LENGTH(&data->list); i++)
|
||||
{
|
||||
for (i = 0; i < ARRAY_LENGTH(&data->list); i++) {
|
||||
item = &ARRAY_ITEM(&data->list, i);
|
||||
wcd = item->wcd;
|
||||
|
||||
@ -737,7 +736,7 @@ window_choose_write_line(
|
||||
utf8flag = options_get_number(&wp->window->options, "utf8");
|
||||
memcpy(&gc, &grid_default_cell, sizeof gc);
|
||||
if (data->selected == data->top + py)
|
||||
window_mode_attrs(&gc, oo);
|
||||
style_apply(&gc, oo, "mode-style");
|
||||
|
||||
screen_write_cursormove(ctx, 0, py);
|
||||
if (data->top + py < ARRAY_LENGTH(&data->list)) {
|
||||
@ -764,7 +763,7 @@ window_choose_write_line(
|
||||
screen_write_putc(ctx, &gc, ' ');
|
||||
|
||||
if (data->input_type != WINDOW_CHOOSE_NORMAL) {
|
||||
window_mode_attrs(&gc, oo);
|
||||
style_apply(&gc, oo, "mode-style");
|
||||
|
||||
xoff = xsnprintf(hdr, sizeof hdr,
|
||||
"%s: %s", data->input_prompt, data->input_str);
|
||||
|
Reference in New Issue
Block a user