aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/term.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-15 09:19:27 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-15 09:19:27 -0300
commit5f24549ab1ecd69236be2761a2e43690ba7cf283 (patch)
tree7db3ba6961a7115c43e0133a6780f4a742112f05 /src/nvim/term.c
parent9b4f6fbd33ebd452d472b0333accfcb34e01173b (diff)
parent14ebe608e2d26ba352f5abe1c32ce18fcc2eca06 (diff)
downloadrneovim-5f24549ab1ecd69236be2761a2e43690ba7cf283.tar.gz
rneovim-5f24549ab1ecd69236be2761a2e43690ba7cf283.tar.bz2
rneovim-5f24549ab1ecd69236be2761a2e43690ba7cf283.zip
Merge PR #1810 'abstract_ui fixes and improvements(continuation)'
Diffstat (limited to 'src/nvim/term.c')
-rw-r--r--src/nvim/term.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/nvim/term.c b/src/nvim/term.c
index b78b01b68a..07b60e4573 100644
--- a/src/nvim/term.c
+++ b/src/nvim/term.c
@@ -170,6 +170,7 @@ static struct builtin_term builtin_termcaps[] =
{(int)KS_DL, "\033|d"},
{(int)KS_CDL, "\033|%p1%dD"},
{(int)KS_CS, "\033|%p1%d;%p2%dR"},
+ {(int)KS_CSV, "\033|%p1%d;%p2%dV"},
{(int)KS_CL, "\033|C"},
// attributes switched on with 'h', off with * 'H'
{(int)KS_ME, "\033|31H"}, // HL_ALL
@@ -1816,17 +1817,20 @@ void term_write(char_u *s, size_t len)
static char_u out_buf[OUT_SIZE + 1];
static int out_pos = 0; /* number of chars in out_buf */
+// Clear the output buffer
+void out_buf_clear(void)
+{
+ out_pos = 0;
+}
+
/*
* out_flush(): flush the output buffer
*/
void out_flush(void)
{
- if (out_pos != 0) {
- /* set out_pos to 0 before ui_write, to avoid recursiveness */
- int len = out_pos;
- out_pos = 0;
- ui_write(out_buf, len);
- }
+ int len = out_pos;
+ out_pos = 0;
+ ui_write(out_buf, len);
}
/*
@@ -2202,7 +2206,11 @@ void win_new_shellsize(void)
*/
void shell_resized(void)
{
- screen_resize(0, 0, FALSE);
+ if (abstract_ui) {
+ ui_refresh();
+ } else {
+ screen_resize(0, 0, FALSE);
+ }
}
/*