diff --git a/docs/changelog.rst b/docs/changelog.rst index 132e06a2e..17fbc2c9b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -38,6 +38,8 @@ To update |kitty|, :doc:`follow the instructions `. - query terminal kitten: Allow querying font face and size information (:iss:`3756`) +- hyperlinked grep kitten: Fix context options not generating contextual output (:iss:`3759`) + 0.21.1 [2021-06-14] ---------------------- diff --git a/kittens/hyperlinked_grep/main.py b/kittens/hyperlinked_grep/main.py index 39572061d..79a7df406 100644 --- a/kittens/hyperlinked_grep/main.py +++ b/kittens/hyperlinked_grep/main.py @@ -29,7 +29,7 @@ def main() -> None: write: Callable[[bytes], None] = cast(Callable[[bytes], None], sys.stdout.buffer.write) sgr_pat = re.compile(br'\x1b\[.*?m') osc_pat = re.compile(b'\x1b\\].*?\x1b\\\\') - num_pat = re.compile(b'^(\\d+)[:\\-]') + num_pat = re.compile(br'^(\d+)[:-]') in_result: bytes = b'' hostname = socket.gethostname().encode('utf-8')