From 29e94c46e0a0bc895b767a0da42ae20954f26a78 Mon Sep 17 00:00:00 2001 From: John Isom Date: Wed, 29 Jul 2020 15:04:14 -0600 Subject: [PATCH] Fix already-existing bug in javascript.kak --- rc/filetype/javascript.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index c7feb46b..fdac14af 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -61,7 +61,7 @@ define-command -hidden javascript-indent-on-new-line %< # filter previous line try %{ execute-keys -draft k : javascript-trim-indent } # indent after lines beginning / ending with opener token - try %_ execute-keys -draft k ^\h*[[({]|[[({]$ j _ + try %_ execute-keys -draft k s [[({] [\])}] j _ # deindent closing token(s) when after cursor try %_ execute-keys -draft ^\h*[})\]] gh / [})\]] m 1 _ >