about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/shell/kakoune/kakrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shell/kakoune/kakrc b/modules/shell/kakoune/kakrc
index 9b670c7eb824..33b6535ac2a9 100644
--- a/modules/shell/kakoune/kakrc
+++ b/modules/shell/kakoune/kakrc
@@ -15,7 +15,7 @@ hook global BufCreate .*\.html.erb %{
 }
 
 # Strip trailing whitespace on save
-hook global BufWritePre .*(?<!\.diff)$ %{
+hook global BufWritePre .*(?<!\.diff)(?<!\.patch)$ %{
   try %{execute-keys -draft %{%s\h+$<ret>d}}
   echo
 }