From 6c447848bb32784e10b2e8949eac12140bfb4a64 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/nvim') diff --git a/src/nvim/ui.c b/src/nvim/ui.c index afb281daba..c3b4788f43 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