diff --git a/rc/core/comment.kak b/rc/core/comment.kak index 4dee7df7..29d5004d 100644 --- a/rc/core/comment.kak +++ b/rc/core/comment.kak @@ -116,7 +116,7 @@ define-command comment-block -docstring '(un)comment selections using block comm echo "fail \"The 'comment_block' options are empty, could not comment the selection\"" fi } - evaluate-commands -draft %{ + evaluate-commands -save-regs '"/' -draft %{ # Keep non-empty selections execute-keys \A\s*\z @@ -143,7 +143,7 @@ define-command comment-line -docstring '(un)comment selected lines using line co echo "fail \"The 'comment_line' option is empty, could not comment the line\"" fi } - evaluate-commands -draft %{ + evaluate-commands -save-regs '"/' -draft %{ # Select the content of the lines, without indentation execute-keys gi