diff --git a/rc/filetype/dart.kak b/rc/filetype/dart.kak index 6cc246d8..2a07eafc 100644 --- a/rc/filetype/dart.kak +++ b/rc/filetype/dart.kak @@ -98,7 +98,7 @@ define-command -hidden dart-indent-on-new-line %~ # indent after if|else|while|for try %[ execute-keys -draft )MB \A(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\z s \A|.\z 11 ] # deindent closing brace when after cursor - try %[ execute-keys -draft ^\h*\} \; gh / \} m 1 ] + try %[ execute-keys -draft ^\h*\} gh / \} m 1 ] = ~ diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index a3bc0654..c7feb46b 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -63,7 +63,7 @@ define-command -hidden javascript-indent-on-new-line %< # indent after lines beginning / ending with opener token try %_ execute-keys -draft k ^\h*[[({]|[[({]$ j _ # deindent closing token(s) when after cursor - try %_ execute-keys -draft ^\h*[})\]]+ \; gh / [})\]] m 1 _ + try %_ execute-keys -draft ^\h*[})\]] gh / [})\]] m 1 _ > >