aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-12 16:26:27 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-13 11:53:27 -0300
commit6c447848bb32784e10b2e8949eac12140bfb4a64 (patch)
tree18c2067df2da4d7c999ad18c752fa94697e79151 /src
parentfc8f7686905bf0441f4a2f35a65dad85fe813df3 (diff)
downloadrneovim-6c447848bb32784e10b2e8949eac12140bfb4a64.tar.gz
rneovim-6c447848bb32784e10b2e8949eac12140bfb4a64.tar.bz2
rneovim-6c447848bb32784e10b2e8949eac12140bfb4a64.zip
ui: Increase cursor row when text being rendered would cross its limit
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ui.c3
1 files changed, 3 insertions, 0 deletions
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;