From 997059fed1a5f9e27190ea0252bbc03ee28d8b18 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 17 Apr 2021 09:43:12 +0200 Subject: [PATCH] rc javascript: fix line comment prefix --- rc/filetype/javascript.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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