summaryrefslogtreecommitdiff
path: root/rc/filetype/javascript.kak
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2021-04-17 09:43:12 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2021-04-17 20:56:23 +0200
commit997059fed1a5f9e27190ea0252bbc03ee28d8b18 (patch)
tree075931faec74aac6f0ed6054ece797617c5a4cd2 /rc/filetype/javascript.kak
parent5696ed02e49cb9ba076a9a8ce908597720e7df1c (diff)
rc javascript: fix line comment prefix
Diffstat (limited to 'rc/filetype/javascript.kak')
-rw-r--r--rc/filetype/javascript.kak2
1 files changed, 1 insertions, 1 deletions
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 <a-x> s ^\h*\K#\h* <ret> y gh j P }
+ try %{ execute-keys -draft k <a-x> s ^\h*\K/{2,}\h* <ret> y gh j P }
# preserve previous line indent
try %{ execute-keys -draft <semicolon> K <a-&> }
# filter previous line