mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 21:54:23 +00:00
Only print one line by default.
This commit is contained in:
@@ -490,7 +490,7 @@ window_customize_build_keys(struct window_customize_modedata *data,
|
||||
expanded, NULL, 0);
|
||||
free(expanded);
|
||||
|
||||
tmp = cmd_parse_print(bd->cmd);
|
||||
tmp = cmd_parse_print(bd->cmd, 0);
|
||||
xasprintf(&text, "#[ignore]%s", tmp);
|
||||
free(tmp);
|
||||
mti = mode_tree_add(data->data, child, item,
|
||||
@@ -625,7 +625,7 @@ window_customize_draw_key(__unused struct window_customize_modedata *data,
|
||||
if (s->cy >= cy + sy - 1)
|
||||
return;
|
||||
|
||||
cmd = cmd_parse_print(bd->cmd);
|
||||
cmd = cmd_parse_print(bd->cmd, CMD_PARSE_PRINT_MULTILINE);
|
||||
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy), 0,
|
||||
&grid_default_cell, "Command: %s", cmd)) {
|
||||
free(cmd);
|
||||
@@ -633,7 +633,8 @@ window_customize_draw_key(__unused struct window_customize_modedata *data,
|
||||
}
|
||||
default_bd = key_bindings_get_default(kt, bd->key);
|
||||
if (default_bd != NULL) {
|
||||
default_cmd = cmd_parse_print(default_bd->cmd);
|
||||
default_cmd = cmd_parse_print(default_bd->cmd,
|
||||
CMD_PARSE_PRINT_MULTILINE);
|
||||
if (strcmp(cmd, default_cmd) != 0 &&
|
||||
!screen_write_text(ctx, cx, sx, sy - (s->cy - cy), 0,
|
||||
&grid_default_cell, "The default is: %s", default_cmd)) {
|
||||
@@ -1287,7 +1288,7 @@ window_customize_set_key(struct client *c,
|
||||
bd->flags ^= KEY_BINDING_REPEAT;
|
||||
else if (strcmp(s, "Command") == 0) {
|
||||
xasprintf(&prompt, "(%s) ", key_string_lookup_key(key, 0));
|
||||
value = cmd_parse_print(bd->cmd);
|
||||
value = cmd_parse_print(bd->cmd, 0);
|
||||
|
||||
new_item = xcalloc(1, sizeof *new_item);
|
||||
new_item->data = data;
|
||||
|
||||
Reference in New Issue
Block a user