patch 8.2.0379: gcc warns for ambiguous else
Problem: Gcc warns for ambiguous else.
Solution: Add braces. (Dominique Pelle, closes #5778)
diff --git a/src/textprop.c b/src/textprop.c
index 6e3ed5f..580c3e7 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -664,6 +664,7 @@
sizeof(textprop_T));
if (lnum == lnum_start)
+ {
if (dir < 0)
{
if (col < prop.tp_col)
@@ -671,7 +672,7 @@
}
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.