mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
9a2fdf8fd4
12
arguments.c
12
arguments.c
@ -895,6 +895,10 @@ args_percentage(struct args *args, u_char flag, long long minval,
|
|||||||
*cause = xstrdup("missing");
|
*cause = xstrdup("missing");
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
if (TAILQ_EMPTY(&entry->values)) {
|
||||||
|
*cause = xstrdup("empty");
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
value = TAILQ_LAST(&entry->values, args_values)->string;
|
value = TAILQ_LAST(&entry->values, args_values)->string;
|
||||||
return (args_string_percentage(value, minval, maxval, curval, cause));
|
return (args_string_percentage(value, minval, maxval, curval, cause));
|
||||||
}
|
}
|
||||||
@ -909,6 +913,10 @@ args_string_percentage(const char *value, long long minval, long long maxval,
|
|||||||
size_t valuelen = strlen(value);
|
size_t valuelen = strlen(value);
|
||||||
char *copy;
|
char *copy;
|
||||||
|
|
||||||
|
if (valuelen == 0) {
|
||||||
|
*cause = xstrdup("empty");
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
if (value[valuelen - 1] == '%') {
|
if (value[valuelen - 1] == '%') {
|
||||||
copy = xstrdup(value);
|
copy = xstrdup(value);
|
||||||
copy[valuelen - 1] = '\0';
|
copy[valuelen - 1] = '\0';
|
||||||
@ -955,6 +963,10 @@ args_percentage_and_expand(struct args *args, u_char flag, long long minval,
|
|||||||
*cause = xstrdup("missing");
|
*cause = xstrdup("missing");
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
if (TAILQ_EMPTY(&entry->values)) {
|
||||||
|
*cause = xstrdup("empty");
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
value = TAILQ_LAST(&entry->values, args_values)->string;
|
value = TAILQ_LAST(&entry->values, args_values)->string;
|
||||||
return (args_string_percentage_and_expand(value, minval, maxval, curval,
|
return (args_string_percentage_and_expand(value, minval, maxval, curval,
|
||||||
item, cause));
|
item, cause));
|
||||||
|
2
tmux.1
2
tmux.1
@ -217,8 +217,6 @@ that is set does not contain
|
|||||||
.Qq UTF-8
|
.Qq UTF-8
|
||||||
or
|
or
|
||||||
.Qq UTF8 .
|
.Qq UTF8 .
|
||||||
This is equivalent to
|
|
||||||
.Fl T Ar UTF-8 .
|
|
||||||
.It Fl T Ar features
|
.It Fl T Ar features
|
||||||
Set terminal features for the client.
|
Set terminal features for the client.
|
||||||
This is a comma-separated list of features.
|
This is a comma-separated list of features.
|
||||||
|
Loading…
Reference in New Issue
Block a user