From 36fea948b03e0cdb74d951833959e9cce51c15df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Kone=C4=8Dn=C3=BD?= Date: Sun, 2 Aug 2015 12:59:49 +0200 Subject: [PATCH] Fix rust error when calling indent function --- rc/rust.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/rust.kak b/rc/rust.kak index 95c5c296..a69cd811 100644 --- a/rc/rust.kak +++ b/rc/rust.kak @@ -44,7 +44,7 @@ def -hidden _rust_filter_around_selections %{ } def -hidden _rust_indent_on_new_line %~ - eval -draft -itersel %_ + eval -draft -itersel %< # preserve previous line indent try %{ exec -draft K } # filter previous line @@ -59,7 +59,7 @@ def -hidden _rust_indent_on_new_line %~ try %[ exec -draft k ^\h*(public|private|protected):\h*$ j ] # indent after if|else|while|for try %[ exec -draft ) M B \`(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\' s \`|.\' 1 1 ] - _ + > ~ def -hidden _rust_indent_on_opening_curly_brace %[