comparison src/edit.c @ 26468:2fc13817b100 v8.2.3764

patch 8.2.3764: cannot see any text when window was made zero lines Commit: https://github.com/vim/vim/commit/d0fb907253a5c5a71b1f231f3ddec24098fb4e21 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 9 11:57:22 2021 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Dec 2021 13:00:06 +0100
parents 46205b125fbd
children 9596c652420b
comparison
equal deleted inserted replaced
26467:25348fc7dfb6 26468:2fc13817b100
615 615
616 #ifdef FEAT_RIGHTLEFT 616 #ifdef FEAT_RIGHTLEFT
617 if (p_hkmap && KeyTyped) 617 if (p_hkmap && KeyTyped)
618 c = hkmap(c); // Hebrew mode mapping 618 c = hkmap(c); // Hebrew mode mapping
619 #endif 619 #endif
620
621 // If the window was made so small that nothing shows, make it at least
622 // one line and one column when typing.
623 if (KeyTyped && !KeyStuffed)
624 win_ensure_size();
620 625
621 /* 626 /*
622 * Special handling of keys while the popup menu is visible or wanted 627 * Special handling of keys while the popup menu is visible or wanted
623 * and the cursor is still in the completed word. Only when there is 628 * and the cursor is still in the completed word. Only when there is
624 * a match, skip this when no matches were found. 629 * a match, skip this when no matches were found.