diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-13 20:41:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-13 20:41:29 +0200 |
commit | 5bab555c2f1b3b86d57e4adeb86d908eff477fc9 (patch) | |
tree | 78d26979e6955c3f4d65e8946306e459087045e3 /src/screen.c | |
parent | b8e22a053b68774dfd86fd829d9dba2333f09c05 (diff) | |
download | vim-git-5bab555c2f1b3b86d57e4adeb86d908eff477fc9.tar.gz |
patch 8.0.1705: when making a vertical split the mode message isn't updatedv8.0.1705
Problem: When making a vertical split the mode message isn't always
updated, "VISUAL" remains. (Alexei Averchenko)
Solution: Only reset clear_cmdline when filling all columns of the last
screen line. (Tom M. closes #2611)
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c index bcfaabed1..d1f17b51b 100644 --- a/src/screen.c +++ b/src/screen.c @@ -8699,7 +8699,8 @@ screen_fill( if (row == Rows - 1) /* overwritten the command line */ { redraw_cmdline = TRUE; - if (c1 == ' ' && c2 == ' ') + if (start_col == 0 && end_col == Columns + && c1 == ' ' && c2 == ' ' && attr == 0) clear_cmdline = FALSE; /* command line has been cleared */ if (start_col == 0) mode_displayed = FALSE; /* mode cleared or overwritten */ |