diff options
author | erw7 <erw7.github@gmail.com> | 2021-04-04 12:04:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 12:04:36 +0900 |
commit | 8e496b9dfd5b644f06536afea63e3088b9d83cf8 (patch) | |
tree | 5bf51b63a77b213ed5510516e36088a8120446a2 /src | |
parent | 8ed0a0d4dbe1575a0a3bca0f6e8034bfb380b1ef (diff) | |
parent | 581b2bcde0b49bd5e3931beea4c6a677bf549ed5 (diff) | |
download | rneovim-8e496b9dfd5b644f06536afea63e3088b9d83cf8.tar.gz rneovim-8e496b9dfd5b644f06536afea63e3088b9d83cf8.tar.bz2 rneovim-8e496b9dfd5b644f06536afea63e3088b9d83cf8.zip |
Merge pull request #14268 from erw7/fix-p_ch-problem
screen: fix problem with p_ch
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 5bf5a471c1..0042d8a2a4 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -7508,6 +7508,10 @@ void screen_resize(int width, int height) Rows = height; Columns = width; check_shellsize(); + int max_p_ch = Rows - min_rows() + 1; + if (!ui_has(kUIMessages) && p_ch > max_p_ch) { + p_ch = max_p_ch ? max_p_ch : 1; + } height = Rows; width = Columns; p_lines = Rows; |