From dac1cee9076367b20273dfd2997cd5af60861f64 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sat, 10 Jan 2015 22:44:29 -0300 Subject: [PATCH] ui: Use ui_linefeed to handle line breaks correctly ui_linefeed will scroll the screen when it becomes full. This can happen when executing external commands. --- src/nvim/ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 77ab948809..914b04111e 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -482,7 +482,7 @@ static void parse_abstract_ui_codes(uint8_t *ptr, int len) col++; } if (col >= width) { - ui_cursor_goto(row + 1, 0); + ui_linefeed(); } p += clen; }