Merge remote-tracking branch 'lenormf/fix-commenting'

This commit is contained in:
Maxime Coste 2016-03-25 23:02:43 +00:00
commit 072c78f913

View File

@ -57,13 +57,13 @@ def comment-line -docstring "Comment/uncomment the current line" %{
try %{ try %{
## The line has already been commented ## The line has already been commented
exec -draft %{<a-K>^${opening_escaped}<ret>} exec -draft %{<a-K>\A${opening_escaped}<ret>}
## Comment the line ## Comment the line
exec %{i${opening}<esc>${#opening}H} exec %{i${opening}<esc>${#opening}H}
} catch %{ } catch %{
## Uncomment the line ## Uncomment the line
exec -draft %{s^${opening_escaped}\h*<ret>d} exec -draft %{s\A${opening_escaped}\h*<ret>d}
} }
}" }"
} }