diff --git a/rc/base/rust.kak b/rc/base/rust.kak index d5e7ded0..9909cb8e 100644 --- a/rc/base/rust.kak +++ b/rc/base/rust.kak @@ -42,7 +42,7 @@ define-command -hidden rust-filter-around-selections %{ define-command -hidden rust-indent-on-new-line %~ evaluate-commands -draft -itersel %< # copy // comments prefix and following white spaces - try %{ execute-keys -draft k s ^\h*\K//\h* y gh j P } + try %{ execute-keys -draft k s ^\h*\K//[!/]?\h* y gh j P } # preserve previous line indent try %{ execute-keys -draft \; K } # filter previous line