diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-01-12 10:15:13 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-12 10:15:13 -0500 |
commit | 9d0be9604eac8ddd9f856baa0f07625754c4967b (patch) | |
tree | 1d69a0495a3f08feee1715bc04ba8984135bd03e /src/nvim/screen.c | |
parent | 4c55c34efaabaa151391edf59c59a14411a79d8c (diff) | |
parent | d7e18b5c9591da967b707ee4219f1f8789edc175 (diff) | |
download | rneovim-9d0be9604eac8ddd9f856baa0f07625754c4967b.tar.gz rneovim-9d0be9604eac8ddd9f856baa0f07625754c4967b.tar.bz2 rneovim-9d0be9604eac8ddd9f856baa0f07625754c4967b.zip |
Merge pull request #1804 from neovim/revert-1657-abstract-ui-fixes
Revert "[WIP] "abstract_ui" fixes and improvements"
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index b593d5a687..855c09619e 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -4548,7 +4548,7 @@ static void screen_line(int row, int coloff, int endcol, int clear_width, int rl int c; c = fillchar_vsep(&hl); - if (ScreenLines[off_to] != ((schar_T)c) + if (ScreenLines[off_to] != c || (enc_utf8 && (int)ScreenLinesUC[off_to] != (c >= 0x80 ? c : 0)) || ScreenAttrs[off_to] != hl) { @@ -6150,7 +6150,8 @@ void screen_fill(int start_row, int end_row, int start_col, int end_col, int c1, return; /* it's a "normal" terminal when not in a GUI or cterm */ - norm_term = (!abstract_ui && t_colors <= 1); + norm_term = ( + t_colors <= 1); for (row = start_row; row < end_row; ++row) { if (has_mbyte ) { @@ -6674,7 +6675,7 @@ static void linecopy(int to, int from, win_T *wp) */ int can_clear(char_u *p) { - return *p != NUL && ((!abstract_ui && t_colors <= 1) + return *p != NUL && (t_colors <= 1 || cterm_normal_bg_color == 0 || *T_UT != NUL); } @@ -7701,7 +7702,8 @@ static void draw_tabline(void) int attr_fill = hl_attr(HLF_TPF); char_u *p; int room; - int use_sep_chars = !abstract_ui && t_colors < 8; + int use_sep_chars = (t_colors < 8 + ); redraw_tabline = FALSE; @@ -8186,9 +8188,6 @@ void screen_resize(int width, int height, int mustset) check_shellsize(); if (abstract_ui) { - // Clear the output buffer to ensure UIs don't receive redraw command meant - // for invalid screen sizes. - out_buf_clear(); ui_resize(width, height); } else { mch_set_shellsize(); |