mirror of
https://github.com/tmux/tmux.git
synced 2025-11-03 16:46:18 +00:00
Simplify appending to string options.
This commit is contained in:
@@ -915,10 +915,11 @@ options_table_populate_tree(enum options_table_scope scope, struct options *oo)
|
||||
continue;
|
||||
switch (oe->type) {
|
||||
case OPTIONS_TABLE_STRING:
|
||||
options_set_string(oo, oe->name, "%s", oe->default_str);
|
||||
options_set_string(oo, oe->name, 0, "%s",
|
||||
oe->default_str);
|
||||
break;
|
||||
case OPTIONS_TABLE_STYLE:
|
||||
options_set_style(oo, oe->name, oe->default_str, 0);
|
||||
options_set_style(oo, oe->name, 0, oe->default_str);
|
||||
break;
|
||||
default:
|
||||
options_set_number(oo, oe->name, oe->default_num);
|
||||
|
||||
Reference in New Issue
Block a user