summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 932d723205..4033d7d9b8 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1798,6 +1798,9 @@ display_showcmd(void)
{
int len;
+ if (p_ch == 0)
+ return;
+
cursor_off();
len = (int)STRLEN(showcmd_buf);