diff options
| author | Sidharth Kshatriya <sid.kshatriya@gmail.com> | 2022-06-11 14:53:10 +0530 |
|---|---|---|
| committer | Sidharth Kshatriya <sid.kshatriya@gmail.com> | 2022-06-11 14:53:10 +0530 |
| commit | 6ef2d6770653fb3581c040441a4f67d3bfb5d040 (patch) | |
| tree | 843659251391cb757a47728cfec376dab12e0b31 | |
| parent | 650c2aa3aeee390e9db0abbadf85b87f1ac079a1 (diff) | |
If trailing whitespace was introduced in git diff, show it with red background
| -rw-r--r-- | rc/filetype/diff.kak | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/filetype/diff.kak b/rc/filetype/diff.kak index f360dda4..9391ae1e 100644 --- a/rc/filetype/diff.kak +++ b/rc/filetype/diff.kak @@ -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. |
