Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Allow trailing : when only lnum is given
Browse files Browse the repository at this point in the history
This is most helpful for lines created by git.
  • Loading branch information
mmlb committed Feb 10, 2022
1 parent 4f2be07 commit b73d060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.kak
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b73d060

Please sign in to comment.