From c0e14b1cfd4f476927c72ef0d06d7353e51cc38b Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 13:39:50 -0600 Subject: [PATCH] Fix existing error regarding indent after opening brace This is in gluon.kak, right above my addition --- rc/filetype/gluon.kak | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rc/filetype/gluon.kak b/rc/filetype/gluon.kak index 40ca28a4..1e62dc99 100644 --- a/rc/filetype/gluon.kak +++ b/rc/filetype/gluon.kak @@ -88,11 +88,7 @@ define-command -hidden gluon-indent-on-new-line %{ try %{ execute-keys -draft k : gluon-trim-indent } # indent after lines ending with (open) braces, =, ->, condition, rec, # or in - try %{ - execute-keys -draft \ - \; k x (\(|\{|\[|=|->|then|else|rec|in)$ j - # balance out brackets } ] - } + try %{ execute-keys -draft \; k x (\(|\{|\[|=|->|then|else|rec|in)$ j } # deindent closing brace(s) when after cursor try %{ execute-keys -draft ^\h*[})\]]+\h*$ hm 1 } }