mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +00:00
Switch to tiparm_s (added in ncurses 6.4-20230424) instead of tparm,
which allows ncurses to validate the capabilities correctly.
This commit is contained in:
parent
347cd0b5f8
commit
ffa376edf7
10
tty-term.c
10
tty-term.c
@ -761,7 +761,7 @@ tty_term_string_i(struct tty_term *term, enum tty_code_code code, int a)
|
|||||||
{
|
{
|
||||||
const char *x = tty_term_string(term, code), *s;
|
const char *x = tty_term_string(term, code), *s;
|
||||||
|
|
||||||
s = tparm((char *)x, a);
|
s = tiparm_s(1, 0, x, a);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
log_debug("could not expand %s", tty_term_codes[code].name);
|
log_debug("could not expand %s", tty_term_codes[code].name);
|
||||||
return ("");
|
return ("");
|
||||||
@ -774,7 +774,7 @@ tty_term_string_ii(struct tty_term *term, enum tty_code_code code, int a, int b)
|
|||||||
{
|
{
|
||||||
const char *x = tty_term_string(term, code), *s;
|
const char *x = tty_term_string(term, code), *s;
|
||||||
|
|
||||||
s = tparm((char *)x, a, b);
|
s = tiparm_s(2, 0, x, a, b);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
log_debug("could not expand %s", tty_term_codes[code].name);
|
log_debug("could not expand %s", tty_term_codes[code].name);
|
||||||
return ("");
|
return ("");
|
||||||
@ -788,7 +788,7 @@ tty_term_string_iii(struct tty_term *term, enum tty_code_code code, int a,
|
|||||||
{
|
{
|
||||||
const char *x = tty_term_string(term, code), *s;
|
const char *x = tty_term_string(term, code), *s;
|
||||||
|
|
||||||
s = tparm((char *)x, a, b, c);
|
s = tiparm_s(3, 0, x, a, b, c);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
log_debug("could not expand %s", tty_term_codes[code].name);
|
log_debug("could not expand %s", tty_term_codes[code].name);
|
||||||
return ("");
|
return ("");
|
||||||
@ -801,7 +801,7 @@ tty_term_string_s(struct tty_term *term, enum tty_code_code code, const char *a)
|
|||||||
{
|
{
|
||||||
const char *x = tty_term_string(term, code), *s;
|
const char *x = tty_term_string(term, code), *s;
|
||||||
|
|
||||||
s = tparm((char *)x, (long)a);
|
s = tiparm_s(1, 1, x, a);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
log_debug("could not expand %s", tty_term_codes[code].name);
|
log_debug("could not expand %s", tty_term_codes[code].name);
|
||||||
return ("");
|
return ("");
|
||||||
@ -815,7 +815,7 @@ tty_term_string_ss(struct tty_term *term, enum tty_code_code code,
|
|||||||
{
|
{
|
||||||
const char *x = tty_term_string(term, code), *s;
|
const char *x = tty_term_string(term, code), *s;
|
||||||
|
|
||||||
s = tparm((char *)x, (long)a, (long)b);
|
s = tiparm_s(2, 3, x, a, b);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
log_debug("could not expand %s", tty_term_codes[code].name);
|
log_debug("could not expand %s", tty_term_codes[code].name);
|
||||||
return ("");
|
return ("");
|
||||||
|
Loading…
Reference in New Issue
Block a user