From 70d1aa114b599300356378eb931b7f4824268382 Mon Sep 17 00:00:00 2001 From: John Isom Date: Wed, 29 Jul 2020 20:31:43 -0600 Subject: [PATCH] Fix deindentation in protobuf.kak --- rc/filetype/protobuf.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/protobuf.kak b/rc/filetype/protobuf.kak index 2e7d8f97..3d9c9fba 100644 --- a/rc/filetype/protobuf.kak +++ b/rc/filetype/protobuf.kak @@ -76,6 +76,8 @@ define-command -hidden protobuf-indent-on-newline %~ try %{ execute-keys -draft k s \h+$ d } # copy // comments prefix try %{ execute-keys -draft k s ^\h*\K/{2,}(\h*(?=\S))? yP } + # deindent closing brace(s) when after cursor + try %[ execute-keys -draft ^\h*\} gh / \} m 1 ] ] ~