tpope / vim-commentary

commentary.vim: comment stuff out
http://www.vim.org/scripts/script.php?script_id=3695
5.9k stars 214 forks source link

Fix hasmapto() condition not working as intended #173

Closed zeertzjq closed 7 months ago

zeertzjq commented 7 months ago

The RHS of the CommentaryUndo mappings causes the hasmapto() below to always return TRUE, causing vim-commentary to not create any mappings when "gc" is mapped even if there are no user custom mappings.

tpope commented 7 months ago

Thanks!