]> git.lizzy.rs Git - micro.git/commit
Improve comment plugin
authorZachary Yedidia <zyedidia@gmail.com>
Sun, 5 Jul 2020 19:48:49 +0000 (15:48 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Sun, 5 Jul 2020 19:48:49 +0000 (15:48 -0400)
commit806525c3daec4918e2b52fa4eb90342f85150cfc
treea40755ed36d3143024c44212bd3bd2933c788e8d
parent102ae04a16f4832021ea1263d9f72f35fdbc9b17
Improve comment plugin

When commenting a selection, the plugin won't just toggle each
line individually but will only uncomment the block if it is all
comments.

The comment plugin also now takes into account any number of spaces
between the comment character and the text. For example '//comment' will
be uncommented properly, as well as '//      comment'.

Fixes #1758
internal/config/runtime.go
runtime/plugins/comment/comment.lua