From b73d06019d16ccb6eea7e054e88addf023aab22b Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Thu, 10 Feb 2022 15:16:50 -0500 Subject: [PATCH] Allow trailing `:` when only lnum is given This is most helpful for lines created by git. --- fetch.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch.kak b/fetch.kak index 8851ba4..00399fe 100644 --- a/fetch.kak +++ b/fetch.kak @@ -1,7 +1,7 @@ # SPDX-License-Identifier: AGPL-3.0 -# trailing colon: :lnum[:colnum[:]] -hook global WinDisplay (.*?):(\d+)(?::(\d+):?)? %{ evaluate-commands %sh{ +# trailing colon: :lnum[[:]colnum[:]] +hook global WinDisplay (.*?):(\d+)(?::?(\d+)?(?::?))? %{ evaluate-commands %sh{ file=$kak_hook_param_capture_1 line=$kak_hook_param_capture_2 col=$kak_hook_param_capture_3