summaryrefslogtreecommitdiff
path: root/rc/base/javascript.kak
diff options
context:
space:
mode:
Diffstat (limited to 'rc/base/javascript.kak')
-rw-r--r--rc/base/javascript.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/base/javascript.kak b/rc/base/javascript.kak
index 0ea31df7..353e156b 100644
--- a/rc/base/javascript.kak
+++ b/rc/base/javascript.kak
@@ -53,7 +53,7 @@ def -hidden _javascript_indent_on_new_line %<
# filter previous line
try %{ exec -draft k : _javascript_filter_around_selections <ret> }
# copy // comments prefix and following white spaces
- try %{ exec -draft k x s ^\h*\K#\h* <ret> y j p }
+ try %{ exec -draft k x s ^\h*\K#\h* <ret> y gh j P }
# indent after lines beginning / ending with opener token
try %_ exec -draft k x <a-k> ^\h*[[{]|[[{]$ <ret> j <a-gt> _
>