diff --git a/rc/core/commenting.kak b/rc/core/commenting.kak index 6f72db62..7d917c43 100644 --- a/rc/core/commenting.kak +++ b/rc/core/commenting.kak @@ -57,13 +57,13 @@ def comment-line -docstring "Comment/uncomment the current line" %{ try %{ ## The line has already been commented - exec -draft %{^${opening_escaped}} + exec -draft %{\A${opening_escaped}} ## Comment the line exec %{i${opening}${#opening}H} } catch %{ ## Uncomment the line - exec -draft %{s^${opening_escaped}\h*d} + exec -draft %{s\A${opening_escaped}\h*d} } }" }