From 1f0ec535bdb9bb0588b0438c5879fd0738d2298f Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Sun, 15 Jan 2017 14:43:45 +0100 Subject: [PATCH] tweak :comment-line behaviour to comment selected lines --- rc/core/comment.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/core/comment.kak b/rc/core/comment.kak index 7e89d749..127b5163 100644 --- a/rc/core/comment.kak +++ b/rc/core/comment.kak @@ -123,7 +123,7 @@ def comment-selection -docstring "Comment/uncomment the current selection" %{ } } -def comment-line -docstring "Comment/uncomment the current line" %{ +def comment-line -docstring "(un)comment selected lines using line comments" %{ %sh{ readonly opening="${kak_opt_comment_line_chars}" readonly opening_escaped="\\Q${opening}\\E" @@ -134,8 +134,8 @@ def comment-line -docstring "Comment/uncomment the current line" %{ fi printf %s\\n "eval -draft %{ - ## Select the content of the line, without indentation - exec I + ## Select the content of the lines, without indentation + exec I try %{ ## There's no text on the line