From a3f644b99a3f8c22b2f44fc2c6a76551f87194fc Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Sat, 27 Jan 2024 01:33:27 -0600 Subject: [PATCH] lib: fix _POSIX_VDISABLE We end up clobbering it later because the final `cc` assignments were only meant to be done if we've decided that len == 2. Signed-off-by: Kyle Evans --- lib/core/orch_tty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/core/orch_tty.c b/lib/core/orch_tty.c index 5a46b1c..8b49b8d 100644 --- a/lib/core/orch_tty.c +++ b/lib/core/orch_tty.c @@ -177,12 +177,12 @@ orchlua_term_update_cc(lua_State *L, struct termios *term) "cntrl char for cc '%s' out of bounds: %c", iter->cntrl_name, str[1]); return (2); + } else { + if (str[1] == '?') + cc = 0177; + else + cc = str[1] - 0x40; } - - if (str[1] == '?') - cc = 0177; - else - cc = str[1] - 0x40; } term->c_cc[iter->cntrl_idx] = cc;