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 %[