From 1bcec582d322e9438c220e928e364964f75a33d4 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 3 Jul 2014 17:19:58 +0200 Subject: [PATCH] indent_on_new_line: handle 'else if' command --- rc/fish.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/fish.kak b/rc/fish.kak index ae0c7691..2f5f9c15 100644 --- a/rc/fish.kak +++ b/rc/fish.kak @@ -50,7 +50,7 @@ def -hidden _fish_indent_on_new_line %{ # copy '#' comment prefix and following white spaces try %{ exec -draft k x s ^\h*\K#\h* y j p } # indent after (begin|for|function|if|switch|while) commands and add 'end' command - try %{ exec -draft k x (begin|for|function|if|switch|while) x y p j a end k } + try %{ exec -draft k x (begin|for|function|(? x y p j a end k } } }