From b17005edd98dd7b46b5ff689d83d7bcebac756e5 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 12 Dec 2014 16:26:27 -0300 Subject: ui: Increase cursor row when text being rendered would cross its limit --- src/nvim/ui.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nvim/ui.c b/src/nvim/ui.c index b37bc92b1a..cd8c3b73e6 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -458,6 +458,9 @@ static void parse_abstract_ui_codes(uint8_t *ptr, int len) UI_CALL(put, NULL, 0); col++; } + if (col >= width) { + ui_cursor_goto(row + 1, 0); + } p += clen; } ptr = p; -- cgit