diff --git a/rc/filetype/java.kak b/rc/filetype/java.kak index a2b18fd1..12cb99a3 100644 --- a/rc/filetype/java.kak +++ b/rc/filetype/java.kak @@ -57,7 +57,7 @@ define-command -hidden java-indent-on-new-line %~ # indent after keywords try %[ execute-keys -draft )MB \A(if|else|while|for|try|catch)\h*\(.*\)\h*\n\h*\n?\z s \A|.\z 11 ] # deindent closing brace(s) when after cursor - try %[ execute-keys -draft ^\h*[})]+\h*$ hm 1 ] + try %[ execute-keys -draft ^\h*[})] gh / [})] m 1 ] = ~