From 4dfd8b7b3a1b7c1bab141a3e503bed77b2198aa0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 10 Apr 2021 22:03:29 +0200 Subject: Add last test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libterminput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libterminput.c') diff --git a/libterminput.c b/libterminput.c index 2eb6b95..81656aa 100644 --- a/libterminput.c +++ b/libterminput.c @@ -800,7 +800,7 @@ again: p = stpcpy(&ctx->key[n], ret.symbol); /* Check if sequence is complete */ continue_incomplete: - if (!isalpha(p[-1]) && p[-1] != '~' && p[-1] != '@' && p[-1] != '^' && p[-1] != '$') { /* TODO test */ + if (!isalpha(p[-1]) && p[-1] != '~' && p[-1] != '@' && p[-1] != '^' && p[-1] != '$') { input->type = LIBTERMINPUT_NONE; return 1; } else if (ctx->key[0] == '[' && ctx->key[1] == '<' && p == &ctx->key[2]) { -- cgit v1.2.3-70-g09d2