diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-05-10 09:54:54 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-05-10 16:14:12 +0200 |
commit | 7d6af9985c057eef8f6bb2a625744df1b4ad0a72 (patch) | |
tree | 37b0cad73a42d11a9bfd65f21bd1abfae7460bf9 /src/nvim/screen.c | |
parent | c778311505fe89e3f32ff3027f0a41f0a2b2fd95 (diff) | |
download | rneovim-7d6af9985c057eef8f6bb2a625744df1b4ad0a72.tar.gz rneovim-7d6af9985c057eef8f6bb2a625744df1b4ad0a72.tar.bz2 rneovim-7d6af9985c057eef8f6bb2a625744df1b4ad0a72.zip |
ui: cleanup UI_CALL wrappers
remove pointless control chars in the text stream
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index f897481086..4f4363d121 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -5956,7 +5956,7 @@ void screen_fill(int start_row, int end_row, int start_col, int end_col, int c1, col = off - LineOffset[row]; screen_stop_highlight(); ui_cursor_goto(row, col); // clear rest of this screen line - ui_eol_clear(); + ui_call_eol_clear(); col = end_col - col; while (col--) { /* clear chars in ScreenLines */ ScreenLines[off] = ' '; @@ -6345,10 +6345,10 @@ static void screenclear2(void) LineWraps[i] = FALSE; } - ui_clear(); // clear the display - clear_cmdline = FALSE; - mode_displayed = FALSE; - screen_cleared = TRUE; /* can use contents of ScreenLines now */ + ui_call_clear(); // clear the display + clear_cmdline = false; + mode_displayed = false; + screen_cleared = true; // can use contents of ScreenLines now win_rest_invalid(firstwin); redraw_cmdline = TRUE; @@ -6647,7 +6647,7 @@ int screen_ins_lines ( } } - ui_append_lines(line_count); + ui_call_scroll(-line_count); return OK; } @@ -6702,7 +6702,7 @@ int screen_del_lines ( } } - ui_delete_lines(line_count); + ui_call_scroll(line_count); return OK; } |