diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-01 22:07:48 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-01 23:41:10 -0500 |
commit | a5bacdbfb4f10652598d45e339c9f670b477ac8d (patch) | |
tree | fe2a0ae3ac839732665573cc7a018d69c7e4ca38 /src/nvim/screen.c | |
parent | e50875b3e321428b88b5f2313246995811a82fac (diff) | |
download | rneovim-a5bacdbfb4f10652598d45e339c9f670b477ac8d.tar.gz rneovim-a5bacdbfb4f10652598d45e339c9f670b477ac8d.tar.bz2 rneovim-a5bacdbfb4f10652598d45e339c9f670b477ac8d.zip |
vim-patch:8.1.1901: the +insert_expand feature is not always available
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
https://github.com/vim/vim/commit/e2c453d38f6512ac4cff7cd26aa7780b4e2534d7
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index dd28c6fb35..20e3cc0a2e 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -7152,11 +7152,13 @@ static void win_redr_ruler(win_T *wp, int always) if (wp->w_cursor.lnum > wp->w_buffer->b_ml.ml_line_count) return; - /* Don't draw the ruler while doing insert-completion, it might overwrite - * the (long) mode message. */ - if (wp == lastwin && lastwin->w_status_height == 0) - if (edit_submode != NULL) + // Don't draw the ruler while doing insert-completion, it might overwrite + // the (long) mode message. + if (wp == lastwin && lastwin->w_status_height == 0) { + if (edit_submode != NULL) { return; + } + } if (*p_ruf) { int save_called_emsg = called_emsg; |