aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-05-25 20:45:55 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-05-25 20:45:55 +0000
commitf14b294dccca8c77b9f0aedb0fafe9663c67e71b (patch)
tree464bf4166e8a11a6fe62c3fa2fab0d12d352731c
parentvt: remove partial support for 8-bit C1 control chars (diff)
vt: remove action_utf8_print(term, 0) calls from UTF-8 state handlers
These calls appear to be left over from a previous refactoring of the code. Calling this function with `wc == 0` is a no-op.
-rw-r--r--vt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vt.c b/vt.c
index daa634d1..67ec547a 100644
--- a/vt.c
+++ b/vt.c
@@ -1059,7 +1059,7 @@ state_utf8_21_switch(struct terminal *term, uint8_t data)
switch (data) {
/* exit current enter new state */
case 0x80 ... 0xbf: action_utf8_22(term, data); return STATE_GROUND;
- default: action_utf8_print(term, 0); return STATE_GROUND;
+ default: return STATE_GROUND;
}
}
@@ -1069,7 +1069,7 @@ state_utf8_31_switch(struct terminal *term, uint8_t data)
switch (data) {
/* exit current enter new state */
case 0x80 ... 0xbf: action_utf8_32(term, data); return STATE_UTF8_32;
- default: action_utf8_print(term, 0); return STATE_GROUND;
+ default: return STATE_GROUND;
}
}
@@ -1079,7 +1079,7 @@ state_utf8_32_switch(struct terminal *term, uint8_t data)
switch (data) {
/* exit current enter new state */
case 0x80 ... 0xbf: action_utf8_33(term, data); return STATE_GROUND;
- default: action_utf8_print(term, 0); return STATE_GROUND;
+ default: return STATE_GROUND;
}
}
@@ -1089,7 +1089,7 @@ state_utf8_41_switch(struct terminal *term, uint8_t data)
switch (data) {
/* exit current enter new state */
case 0x80 ... 0xbf: action_utf8_42(term, data); return STATE_UTF8_42;
- default: action_utf8_print(term, 0); return STATE_GROUND;
+ default: return STATE_GROUND;
}
}
@@ -1099,7 +1099,7 @@ state_utf8_42_switch(struct terminal *term, uint8_t data)
switch (data) {
/* exit current enter new state */
case 0x80 ... 0xbf: action_utf8_43(term, data); return STATE_UTF8_43;
- default: action_utf8_print(term, 0); return STATE_GROUND;
+ default: return STATE_GROUND;
}
}
@@ -1109,7 +1109,7 @@ state_utf8_43_switch(struct terminal *term, uint8_t data)
switch (data) {
/* exit current enter new state */
case 0x80 ... 0xbf: action_utf8_44(term, data); return STATE_GROUND;
- default: action_utf8_print(term, 0); return STATE_GROUND;
+ default: return STATE_GROUND;
}
}