diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index b208c8a6..5713d5a6 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -55,7 +55,7 @@ define-command -hidden javascript-indent-on-char %< define-command -hidden javascript-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/{2,}\h* y gh j P } # preserve previous line indent try %{ execute-keys -draft K } # filter previous line