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.
e2c453d38f
This commit is contained in:
Jan Edmund Lazo
2021-03-01 22:07:48 -05:00
parent e50875b3e3
commit a5bacdbfb4
4 changed files with 12 additions and 15 deletions

View File

@@ -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;