mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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.
This commit is contained in:
parent
14a55de4e7
commit
f14b294dcc
1 changed files with 6 additions and 6 deletions
12
vt.c
12
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue