aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-26 21:45:46 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-26 21:50:37 -0400
commit3c3b7844b95879bcfd86677df4cfac3edb0fb132 (patch)
treef34ba1b9e0e138f86666e77280da66f6ca0687e3 /src/nvim/screen.c
parentb2a11515b2cf6923dd0c1a36efe22aabf6bc582c (diff)
downloadrneovim-3c3b7844b95879bcfd86677df4cfac3edb0fb132.tar.gz
rneovim-3c3b7844b95879bcfd86677df4cfac3edb0fb132.tar.bz2
rneovim-3c3b7844b95879bcfd86677df4cfac3edb0fb132.zip
lint
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index e5e4a850df..fe9fba7af6 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -6410,14 +6410,11 @@ int showmode(void)
&& ((State & TERM_FOCUS)
|| (State & INSERT)
|| restart_edit
- || VIsual_active
- ));
+ || VIsual_active));
if (do_mode || reg_recording != 0) {
- /*
- * Don't show mode right now, when not redrawing or inside a mapping.
- * Call char_avail() only when we are going to show something, because
- * it takes a bit of time.
- */
+ // Don't show mode right now, when not redrawing or inside a mapping.
+ // Call char_avail() only when we are going to show something, because
+ // it takes a bit of time.
if (!redrawing() || (char_avail() && !KeyTyped) || msg_silent != 0) {
redraw_cmdline = TRUE; /* show mode later */
return 0;
@@ -6534,7 +6531,7 @@ int showmode(void)
need_clear = TRUE;
}
if (reg_recording != 0
- && edit_submode == NULL /* otherwise it gets too long */
+ && edit_submode == NULL // otherwise it gets too long
) {
recording_mode(attr);
need_clear = true;