diff --git a/kitty/window.py b/kitty/window.py index aabbe29..6eaaa33 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -2785,7 +2785,7 @@ class Window: def _push_scrollback_search_mode(self) -> None: from .fast_data_types import GLFW_FKEY_ESCAPE, GLFW_MOD_SHIFT - from .options.utils import KeyDefinition, KeyboardMode, SingleKey + from .options.utils import KeyboardMode, KeyDefinition, SingleKey km = KeyboardMode('__scrollback_search__') km.on_unknown = 'passthrough' diff --git a/kitty_tests/scrollback_search.py b/kitty_tests/scrollback_search.py index 612211d..fb489d8 100644 --- a/kitty_tests/scrollback_search.py +++ b/kitty_tests/scrollback_search.py @@ -4,8 +4,6 @@ import re import time -from .base import BaseTest - from kitty.scrollback_search import ( InvalidQuery, Match, @@ -15,6 +13,8 @@ from kitty.scrollback_search import ( scroll_offset_for, ) +from .base import BaseTest + class TestScrollbackSearch(BaseTest): def test_parse_query(self):