mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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)
This commit is contained in:
@@ -618,6 +618,11 @@ edit(
|
||||
c = hkmap(c); // Hebrew mode mapping
|
||||
#endif
|
||||
|
||||
// If the window was made so small that nothing shows, make it at least
|
||||
// one line and one column when typing.
|
||||
if (KeyTyped && !KeyStuffed)
|
||||
win_ensure_size();
|
||||
|
||||
/*
|
||||
* Special handling of keys while the popup menu is visible or wanted
|
||||
* and the cursor is still in the completed word. Only when there is
|
||||
|
Reference in New Issue
Block a user