aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-06-27 22:31:51 +0200
committerGitHub <noreply@github.com>2019-06-27 22:31:51 +0200
commit9f64e4b73faace89d89f3b2db91feab1f2d15e6f (patch)
tree60ef47ac00413e1da9ccfe185219be92da789b7f /src/nvim/screen.c
parent35b959c6002ed5da326f6ab25065c1bc1b60a057 (diff)
parentd555e44219f14477fbd066d0633aa5ab5912a509 (diff)
downloadrneovim-9f64e4b73faace89d89f3b2db91feab1f2d15e6f.tar.gz
rneovim-9f64e4b73faace89d89f3b2db91feab1f2d15e6f.tar.bz2
rneovim-9f64e4b73faace89d89f3b2db91feab1f2d15e6f.zip
Merge #10349 from janlazo/vim-8.0.0935
vim-patch:8.0.{935,1013,1100,1119}
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index d141520fef..19dff0a0f0 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -269,14 +269,14 @@ void update_curbuf(int type)
/// and redraw_all_later() to mark parts of the screen as needing a redraw.
///
/// @param type set to a NOT_VALID to force redraw of entire screen
-void update_screen(int type)
+int update_screen(int type)
{
static int did_intro = FALSE;
int did_one;
// Don't do anything if the screen structures are (not yet) valid.
if (!default_grid.chars) {
- return;
+ return FAIL;
}
if (must_redraw) {
@@ -299,9 +299,10 @@ void update_screen(int type)
if (!redrawing() || updating_screen) {
redraw_later(type); /* remember type for next time */
must_redraw = type;
- if (type > INVERTED_ALL)
- curwin->w_lines_valid = 0; /* don't use w_lines[].wl_size now */
- return;
+ if (type > INVERTED_ALL) {
+ curwin->w_lines_valid = 0; // don't use w_lines[].wl_size now
+ }
+ return FAIL;
}
updating_screen = TRUE;
@@ -511,6 +512,7 @@ void update_screen(int type)
// either cmdline is cleared, not drawn or mode is last drawn
cmdline_was_last_drawn = false;
+ return OK;
}
/*