diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer.c | 10 | ||||
-rw-r--r-- | src/nvim/version.c | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 6ce3c77c66..b76bad67f6 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -4423,8 +4423,8 @@ linenr_T buf_delsign( } /* When deleted the last sign needs to redraw the windows to remove the - * sign column. Not when curwin is NULL (this means we're exiting). */ - if (buf->b_signlist != NULL && curwin != NULL) { + * sign column. */ + if (buf->b_signlist == NULL) { redraw_buf_later(buf, NOT_VALID); changed_cline_bef_curs(); } @@ -4479,11 +4479,9 @@ void buf_delete_signs(buf_T *buf) signlist_T *next; // When deleting the last sign need to redraw the windows to remove the - // sign column. - if (buf->b_signlist != NULL) { + // sign column. Not when curwin is NULL (this means we're exiting). + if (buf->b_signlist != NULL && curwin != NULL){ redraw_buf_later(buf, NOT_VALID); - // TODO(oni-link): Is this call necessary if curwin is not a viewport - // for buf? changed_cline_bef_curs(); } diff --git a/src/nvim/version.c b/src/nvim/version.c index e26da2c607..fbb2b081dd 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -887,21 +887,11 @@ void intro_message(int colon) "", N_("type :q<Enter> to exit "), N_("type :help<Enter> or <F1> for on-line help"), - NULL, - "", - N_("Running in Vi compatible mode"), - N_("type :set nocp<Enter> for Vim defaults"), - N_("type :help cp-default<Enter> for info on this"), }; // blanklines = screen height - # message lines blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); - if (!p_cp) { - // add 4 for not showing "Vi compatible" message - blanklines += 4; - } - // Don't overwrite a statusline. Depends on 'cmdheight'. if (p_ls > 1) { blanklines -= Rows - topframe->fr_height; |