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.
diff --git a/src/version.c b/src/version.c
index 303f7ec..75baad1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 379,
+/**/
378,
/**/
377,