Skip to content

Commit 965fd8d

Browse files
committed
patch 8.2.0379: gcc warns for ambiguous else
Problem: Gcc warns for ambiguous else. Solution: Add braces. (Dominique Pelle, closes #5778)
1 parent 346f18e commit 965fd8d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/textprop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,14 +664,15 @@ f_prop_find(typval_T *argvars, typval_T *rettv)
664664
sizeof(textprop_T));
665665

666666
if (lnum == lnum_start)
667+
{
667668
if (dir < 0)
668669
{
669670
if (col < prop.tp_col)
670671
break;
671672
}
672673
else if (prop.tp_col + prop.tp_len - (prop.tp_len != 0) < col)
673674
continue;
674-
675+
}
675676
if (prop.tp_id == id || prop.tp_type == type_id)
676677
{
677678
// Check if the starting position has text props.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
379,
741743
/**/
742744
378,
743745
/**/

0 commit comments

Comments
 (0)