From 13c58536be37743b3861bc254dca59dcd7c21aa1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Jun 2021 21:27:15 +0530 Subject: [PATCH] Cleanup previous PR and add changelog entry --- docs/changelog.rst | 2 ++ kittens/hyperlinked_grep/main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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')