diff --git a/cursorless-talon/src/modifiers/ordinal_scope.py b/cursorless-talon/src/modifiers/ordinal_scope.py index 0ff0ac3982..db617c59eb 100644 --- a/cursorless-talon/src/modifiers/ordinal_scope.py +++ b/cursorless-talon/src/modifiers/ordinal_scope.py @@ -13,7 +13,7 @@ @mod.capture( rule=" | [] {user.cursorless_last_modifier}" ) -def ordinal_or_last(m) -> int: +def cursorless_ordinal_or_last(m) -> int: """An ordinal or the word 'last'""" if m[-1] == "last": return -getattr(m, "ordinals_small", 1) @@ -21,16 +21,16 @@ def ordinal_or_last(m) -> int: @mod.capture( - rule=" [ ] " + rule=" [ ] " ) def cursorless_ordinal_range(m) -> dict[str, Any]: """Ordinal range""" anchor = create_ordinal_scope_modifier( - m.cursorless_scope_type, m.ordinal_or_last_list[0] + m.cursorless_scope_type, m.cursorless_ordinal_or_last_list[0] ) - if len(m.ordinal_or_last_list) > 1: + if len(m.cursorless_ordinal_or_last_list) > 1: active = create_ordinal_scope_modifier( - m.cursorless_scope_type, m.ordinal_or_last_list[1] + m.cursorless_scope_type, m.cursorless_ordinal_or_last_list[1] ) range_connective: RangeConnective = m.cursorless_range_connective return {