diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-14 07:46:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-14 07:46:40 +0100 |
commit | 965fd8d4dc5e84f612d8fc1efeaa78bd17842c9b (patch) | |
tree | aa5832426f7134ef1e970c72cc0342a8374f1509 /src/textprop.c | |
parent | 346f18e5fe12e6aaba5a6a18f6d0deb55eb7a9e8 (diff) | |
download | vim-git-965fd8d4dc5e84f612d8fc1efeaa78bd17842c9b.tar.gz |
patch 8.2.0379: gcc warns for ambiguous elsev8.2.0379
Problem: Gcc warns for ambiguous else.
Solution: Add braces. (Dominique Pelle, closes #5778)
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c index 6e3ed5f7b..580c3e7a9 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -664,6 +664,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv) sizeof(textprop_T)); if (lnum == lnum_start) + { if (dir < 0) { if (col < prop.tp_col) @@ -671,7 +672,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv) } else if (prop.tp_col + prop.tp_len - (prop.tp_len != 0) < col) continue; - + } if (prop.tp_id == id || prop.tp_type == type_id) { // Check if the starting position has text props. |