aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-09-16 19:14:20 -0400
committerScott Prager <splinterofchaos@gmail.com>2014-11-28 14:24:27 -0500
commita3ef5723a95edf153095f512417c402202ac3270 (patch)
tree9f5c2307a2818da722cb92e808dc184a1711fb1a /src/nvim/ui.c
parent98b11f5db3a99ef633ad77ddc6b22dc428873e95 (diff)
downloadrneovim-a3ef5723a95edf153095f512417c402202ac3270.tar.gz
rneovim-a3ef5723a95edf153095f512417c402202ac3270.tar.bz2
rneovim-a3ef5723a95edf153095f512417c402202ac3270.zip
mch_write -> term_write
Switch from POSIX's write() to fwrite(stdout,...) and disable buffering since vim buffers output explicitly and flushes when needed, like when a key is typed.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 803e7fab50..0b68eb3051 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -55,7 +55,7 @@ void ui_write(char_u *s, int len)
s = tofree;
}
- mch_write(s, len);
+ term_write(s, len);
if (output_conv.vc_type != CONV_NONE)
free(tofree);