Skip to content

Commit ec59c87

Browse files
committed
Add missing when.line_matcher in _matches_when()
1 parent dc90696 commit ec59c87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cedarscript_editor/case_filter.py

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def _matches_when(line: str, when: CaseWhen, indent_level: int, line_num: int) -
8282
return True
8383
if when.indent_level is not None and indent_level == when.indent_level:
8484
return True
85+
if when.line_matcher and stripped == when.line_matcher.strip():
86+
return True
8587
if when.line_number is not None and line_num == when.line_number:
8688
return True
8789
return False

0 commit comments

Comments
 (0)