mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
os/shell.c: temporary solution to not put ctrl chars on the screen grid
This commit is contained in:
@@ -464,9 +464,10 @@ static void out_data_append_to_screen(char *output, size_t remaining,
|
||||
continue;
|
||||
}
|
||||
|
||||
// Translate NUL to SOH
|
||||
if (output[off] == NUL) {
|
||||
output[off] = 1;
|
||||
// TODO(bfredl): using msg_puts would be better until
|
||||
// terminal emulation is implemented.
|
||||
if (output[off] < 0x20) {
|
||||
output[off] = ' ';
|
||||
}
|
||||
|
||||
off++;
|
||||
|
Reference in New Issue
Block a user