From 65f160fae71065869ae899024acb02699fad98b5 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 25 Mar 2016 21:40:17 +0200 Subject: [PATCH] Fix the patterns that detect commented selections --- rc/core/commenting.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/core/commenting.kak b/rc/core/commenting.kak index 6f72db62b..7d917c43e 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} } }" }