Skip to content

Commit

Permalink
Fix string concatenation for ic textobject mapping
Browse files Browse the repository at this point in the history
Currently the mapping for the `ic` (inline comment) mapping has no space
in between the `omap` and `g:tcomment_textobject_inlinecomment` parts
meaning that the whole expression would look like:

`exec 'omapic <Plug>TComment_ic'` rather than `exec 'omap ic
<Plug>TComment_ic'`.
  • Loading branch information
atomictom committed Dec 30, 2019
1 parent c9cecef commit ee03e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/tcomment.vim
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ if g:tcomment_maps
exec 'xmap '. g:tcomment_mapleader_comment_anyway .' <Plug>TComment_Comment'
endif
if g:tcomment_textobject_inlinecomment != ''
exec 'vmap' g:tcomment_textobject_inlinecomment ' <Plug>TComment_ic'
exec 'omap' g:tcomment_textobject_inlinecomment ' <Plug>TComment_ic'
exec 'vmap '. g:tcomment_textobject_inlinecomment .' <Plug>TComment_ic'
exec 'omap '. g:tcomment_textobject_inlinecomment .' <Plug>TComment_ic'
endif
endif

Expand Down

0 comments on commit ee03e6e

Please sign in to comment.