diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2024-09-14 12:24:56 +0200 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-09-16 15:23:18 +1000 |
| commit | c93705b4cceedb362af2f068e5e16dd306169372 (patch) | |
| tree | 87537c5a4d7d092420839b27486b4209fb96c7e7 /rc | |
| parent | be5f059f26449d15c7c011615131f464c7315829 (diff) | |
rc filetype diff: diff-jump to use location at main selection, not the last one
The jump command does the same.
Diffstat (limited to 'rc')
| -rw-r--r-- | rc/filetype/diff.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/diff.kak b/rc/filetype/diff.kak index baa65992..1898268a 100644 --- a/rc/filetype/diff.kak +++ b/rc/filetype/diff.kak @@ -34,7 +34,7 @@ define-command diff-jump -params .. -docstring %{ set-register c %val{cursor_column} # If there is a "diff" line, we don't need to look further back. try %{ - execute-keys %{<a-l><semicolon><a-?>^(?:> )*diff\b<ret>x} + execute-keys %{,<a-l><semicolon><a-?>^(?:> )*diff\b<ret>x} } catch %{ # A single file diff won't have a diff line. Start parsing from # the buffer start, so we can tell if +++/--- lines are headers |
