Mercurial > vim
comparison src/option.c @ 30005:bb0e525e1393 v9.0.0340
patch 9.0.0340: the 'cmdheight' zero support causes too much trouble
Commit: https://github.com/vim/vim/commit/a2a8973e51a0052bb52e43a2b22e7ecdecc32003
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 31 14:46:18 2022 +0100
patch 9.0.0340: the 'cmdheight' zero support causes too much trouble
Problem: The 'cmdheight' zero support causes too much trouble.
Solution: Revert support for 'cmdheight' being zero.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 31 Aug 2022 16:00:05 +0200 |
parents | 4fcf816aa806 |
children | b6b803ed4a53 |
comparison
equal
deleted
inserted
replaced
30004:40b34edf15c2 | 30005:bb0e525e1393 |
---|---|
3553 } | 3553 } |
3554 | 3554 |
3555 // if p_ch changed value, change the command line height | 3555 // if p_ch changed value, change the command line height |
3556 else if (pp == &p_ch) | 3556 else if (pp == &p_ch) |
3557 { | 3557 { |
3558 if (p_ch < 0) | 3558 if (p_ch < 1) |
3559 { | 3559 { |
3560 errmsg = e_argument_must_be_positive; | 3560 errmsg = e_argument_must_be_positive; |
3561 p_ch = 1; | 3561 p_ch = 1; |
3562 } | 3562 } |
3563 if (p_ch > Rows - min_rows() + 1) | 3563 if (p_ch > Rows - min_rows() + 1) |