diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-07-24 07:41:01 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-07-24 07:41:01 +0800 |
commit | 86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6 (patch) | |
tree | 2dd6fb4156da7ca3d6d5127d4880f22e59587b15 /src/nvim/ex_cmds.c | |
parent | b656159fcfded40839c222ae1c4e86873c82f295 (diff) | |
download | rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.tar.gz rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.tar.bz2 rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.zip |
fix lint
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 81cee5d535..a555fb77e8 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2802,16 +2802,18 @@ void ex_z(exarg_T *eap) int j; linenr_T lnum = eap->line2; - /* Vi compatible: ":z!" uses display height, without a count uses - * 'scroll' */ - if (eap->forceit) + // Vi compatible: ":z!" uses display height, without a count uses + // 'scroll' + if (eap->forceit) { bigness = curwin->w_height; - else if (ONE_WINDOW) + } else if (ONE_WINDOW) { bigness = curwin->w_p_scr * 2; - else + } else { bigness = curwin->w_height - 3; - if (bigness < 1) + } + if (bigness < 1) { bigness = 1; + } x = eap->arg; kind = x; |