Skip to content

Commit

Permalink
better check for mappings with modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Aug 23, 2020
1 parent b3f5d65 commit 5e70926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/committia.vim
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function! s:callback_on_window_closed_workaround() abort
endfunction

function! s:get_map_of(cmd) abort
if strlen(a:cmd) == 1
if stridx(a:cmd, '-') == -1
return a:cmd
endif
return eval('"\<' . a:cmd . '>"')
Expand Down

0 comments on commit 5e70926

Please sign in to comment.