patch 8.2.1568: prop_find() skips properties in the same line
Problem: prop_find() skips properties in the same line if "skipstart" is
used.
Solution: Use "continue" instead of "break". (closes #6840)
diff --git a/src/textprop.c b/src/textprop.c
index 0645e1f..9dff6b8 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -718,7 +718,7 @@
// on a prop and we're not skipping.
if (start_pos_has_prop && !skipstart)
dir = -1;
- break;
+ continue;
}
// If skipstart is true, skip the prop at start pos (even if
@@ -726,7 +726,7 @@
if (start_pos_has_prop && skipstart && !seen_end)
{
start_pos_has_prop = 0;
- break;
+ continue;
}
prop_fill_dict(rettv->vval.v_dict, &prop, buf);