From 965fd8d4dc5e84f612d8fc1efeaa78bd17842c9b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 14 Mar 2020 07:46:40 +0100 Subject: patch 8.2.0379: gcc warns for ambiguous else Problem: Gcc warns for ambiguous else. Solution: Add braces. (Dominique Pelle, closes #5778) --- src/textprop.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/textprop.c b/src/textprop.c index 6e3ed5f7be..580c3e7a97 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. diff --git a/src/version.c b/src/version.c index 303f7eca59..75baad19a7 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 379, /**/ 378, /**/ -- cgit v1.2.3