comment.kak: don't modify registers as side effect
This commit is contained in:
parent
b06ad06507
commit
efcd94820c
|
@ -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\""
|
echo "fail \"The 'comment_block' options are empty, could not comment the selection\""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
evaluate-commands -draft %{
|
evaluate-commands -save-regs '"/' -draft %{
|
||||||
# Keep non-empty selections
|
# Keep non-empty selections
|
||||||
execute-keys <a-K>\A\s*\z<ret>
|
execute-keys <a-K>\A\s*\z<ret>
|
||||||
|
|
||||||
|
@ -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\""
|
echo "fail \"The 'comment_line' option is empty, could not comment the line\""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
evaluate-commands -draft %{
|
evaluate-commands -save-regs '"/' -draft %{
|
||||||
# Select the content of the lines, without indentation
|
# Select the content of the lines, without indentation
|
||||||
execute-keys <a-s>gi<a-l>
|
execute-keys <a-s>gi<a-l>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user