mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
vt: execute: handle \0 (NUL), by ignoring it
This commit is contained in:
parent
d2e0ba3670
commit
332f1c6a21
1 changed files with 3 additions and 0 deletions
3
vt.c
3
vt.c
|
|
@ -789,6 +789,9 @@ action(struct terminal *term, enum action _action, uint8_t c)
|
||||||
case ACTION_EXECUTE:
|
case ACTION_EXECUTE:
|
||||||
LOG_DBG("execute: 0x%02x", c);
|
LOG_DBG("execute: 0x%02x", c);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
case '\0':
|
||||||
|
break;
|
||||||
|
|
||||||
case '\n':
|
case '\n':
|
||||||
/* LF - line feed */
|
/* LF - line feed */
|
||||||
term_linefeed(term);
|
term_linefeed(term);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue