Skip to content

Commit f6a856d

Browse files
committed
Noticed that we potentially could try to get the child of a leaf element, so added a check. I'm not sure it can happen though. Just being safe.
1 parent dcb16b9 commit f6a856d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Rules/Languages/en/navigate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
replace:
403403
#don't bother with MatchCounter since we only get here if > 1
404404
- test:
405-
if: "$ReadZoomLevel >= DistanceFromLeaf(., false, $NavMode!='Character')"
405+
if: "IsNode(., 'leaf') or $ReadZoomLevel >= DistanceFromLeaf(., false, $NavMode!='Character')"
406406
then:
407407
# - with:
408408
# variables: [Move2D: "'in'", Child2D: "following-sibling::*[1]"] # phrase('in' the denominator)

0 commit comments

Comments
 (0)