From 01dba547fb57ce4db5e78e79a781b8853f15900b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Nov 2016 22:27:50 +0000 Subject: [PATCH] Tweak c-family indentation logic --- rc/core/c-family.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index 13daf3c59..3d725ec07 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -58,7 +58,7 @@ def -hidden _c-family-indent-on-newline %[ eval -draft -itersel %[ ## indent after a statement not followed by an opening brace try %[ exec -draft k \b(if|else|for|while)\h*\(.+?\)\h*$ j ] ## align to the opening parenthesis on a previous line if its followed by text on the same line - try %[ exec -draft {b \`\([^\n]+\n[^\n]*\' L s\`|.\' & ] + try %[ exec -draft {b \`\([^\n]+\n[^\n]*\n?\' L s\`|.\' & ] ] ] def -hidden _c-family-indent-on-opening-curly-brace %[