aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-12-13 10:56:17 -0300
committerFelipe Oliveira Carvalho <felipekde@gmail.com>2014-12-13 23:36:11 -0300
commit0bc40e660c0a74776ace86ad5e393755523c3803 (patch)
tree94fd08577b5eed003b6f7eb3a7bcafcac7f20a66 /src/nvim/ex_cmds.c
parent77135447e09903b45d1482da45869946212f7904 (diff)
downloadrneovim-0bc40e660c0a74776ace86ad5e393755523c3803.tar.gz
rneovim-0bc40e660c0a74776ace86ad5e393755523c3803.tar.bz2
rneovim-0bc40e660c0a74776ace86ad5e393755523c3803.zip
Simple refatorings that didn't fit the pattern of the last commit
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 78386dda45..1c6aa536b3 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3329,12 +3329,11 @@ void ex_z(exarg_T *eap)
if (!VIM_ISDIGIT(*x)) {
EMSG(_("E144: non-numeric argument to :z"));
return;
- } else {
- bigness = atoi((char *)x);
- p_window = bigness;
- if (*kind == '=')
- bigness += 2;
}
+ bigness = atoi((char *)x);
+ p_window = bigness;
+ if (*kind == '=')
+ bigness += 2;
}
/* the number of '-' and '+' multiplies the distance */