vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 18277c494b8d18e47544976d2b378920c776c924 parent cead9442c2fa8b35894f4d9cb536a91f16b3cb0f Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 13 Feb 2020 14:24:48 +0100 test/util: list all enum values to fix compiler warning Diffstat:
| M | util/keys.c | | | 13 | ++++++++----- |
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/util/keys.c b/util/keys.c @@ -41,11 +41,6 @@ static void printkey(TermKeyKey *key) { ; print("%s", key->utf8); break; - case TERMKEY_TYPE_UNKNOWN_CSI: - case TERMKEY_TYPE_MOUSE: - case TERMKEY_TYPE_POSITION: - case TERMKEY_TYPE_FUNCTION: - break; case TERMKEY_TYPE_KEYSYM: switch (key->code.sym) { case TERMKEY_SYM_UNKNOWN: @@ -136,6 +131,14 @@ static void printkey(TermKeyKey *key) { break; } break; + case TERMKEY_TYPE_FUNCTION: + case TERMKEY_TYPE_MOUSE: + case TERMKEY_TYPE_POSITION: + case TERMKEY_TYPE_MODEREPORT: + case TERMKEY_TYPE_DCS: + case TERMKEY_TYPE_OSC: + case TERMKEY_TYPE_UNKNOWN_CSI: + break; } }