From d0fb907253a5c5a71b1f231f3ddec24098fb4e21 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 9 Dec 2021 11:57:22 +0000 Subject: patch 8.2.3764: cannot see any text when window was made zero lines Problem: Cannot see any text when window was made zero lines or zero columns. Solution: Ensure there is at least one line and column. (fixes #9307) --- src/normal.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/normal.c') diff --git a/src/normal.c b/src/normal.c index 0fbfe9207..d3c4c7875 100644 --- a/src/normal.c +++ b/src/normal.c @@ -608,6 +608,11 @@ normal_cmd( old_mapped_len = 0; // do go to Insert mode } + // If the window was made so small that nothing shows, make it at least one + // line and one column when typing a command. + if (KeyTyped && !KeyStuffed) + win_ensure_size(); + #ifdef FEAT_CMDL_INFO need_flushbuf = add_to_showcmd(c); #endif -- cgit v1.2.1