Mercurial > vim
comparison src/normal.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 | a74c8936794a |
children | 9596c652420b |
comparison
equal
deleted
inserted
replaced
26467:25348fc7dfb6 | 26468:2fc13817b100 |
---|---|
606 c = 'c'; | 606 c = 'c'; |
607 msg_nowait = TRUE; // don't delay going to insert mode | 607 msg_nowait = TRUE; // don't delay going to insert mode |
608 old_mapped_len = 0; // do go to Insert mode | 608 old_mapped_len = 0; // do go to Insert mode |
609 } | 609 } |
610 | 610 |
611 // If the window was made so small that nothing shows, make it at least one | |
612 // line and one column when typing a command. | |
613 if (KeyTyped && !KeyStuffed) | |
614 win_ensure_size(); | |
615 | |
611 #ifdef FEAT_CMDL_INFO | 616 #ifdef FEAT_CMDL_INFO |
612 need_flushbuf = add_to_showcmd(c); | 617 need_flushbuf = add_to_showcmd(c); |
613 #endif | 618 #endif |
614 | 619 |
615 getcount: | 620 getcount: |