aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-10 17:39:09 +0200
committerGitHub <noreply@github.com>2017-05-10 17:39:09 +0200
commit031756c5e6a3dc2b9e811086a2531a41e4f58a19 (patch)
tree294effe35254d53766dfe2358415f26e8dd61cb9 /src/nvim/os/shell.c
parentd9023b84e63f51611cf55f72ca5e021d64ba7ce9 (diff)
parent2d5920ae1ada751811e04bcc8d3a8fe4f890617a (diff)
downloadrneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.tar.gz
rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.tar.bz2
rneovim-031756c5e6a3dc2b9e811086a2531a41e4f58a19.zip
Merge pull request #6618 from bfredl/ui_event
generate UI remote event wrappers and add them to metadata
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r--src/nvim/os/shell.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c
index fc8ab7dc8f..1a40309655 100644
--- a/src/nvim/os/shell.c
+++ b/src/nvim/os/shell.c
@@ -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++;