Skip to content

Commit

Permalink
Merge remote-tracking branch 'sidkshatriya/git-diff-highlight-trailin…
Browse files Browse the repository at this point in the history
…g-whitespace'
  • Loading branch information
mawww committed Jun 13, 2022
2 parents 445be1c + 6ef2d67 commit dd88765
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rc/filetype/diff.kak
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ add-highlighter shared/diff group
add-highlighter shared/diff/ regex "^\+[^\n]*\n" 0:green,default
add-highlighter shared/diff/ regex "^-[^\n]*\n" 0:red,default
add-highlighter shared/diff/ regex "^@@[^\n]*@@" 0:cyan,default
# If any trailing whitespace was introduced in diff, show it with red background
add-highlighter shared/diff/ regex "^\+[^\n]*?(\h+)\n" 1:default,red

define-command diff-jump -params .. -docstring %{
diff-jump [<switches>] [<directory>]: edit the diff's source file at the cursor position.
Expand Down

0 comments on commit dd88765

Please sign in to comment.