Skip to content

Commit 3154bac

Browse files
committed
feat: do not check if the mapping is already defined
1 parent 51f9bf0 commit 3154bac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugin/fall/mapping.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ cnoremap <silent> <Plug>(fall-action-select) <Cmd>call fall#action('@select')<CR
6363
6464
if !get(g:, 'fall_disable_default_mapping')
6565
function! s:define(lhs, rhs) abort
66-
if !hasmapto(a:rhs, 'c') && empty(maparg(a:lhs, 'c'))
67-
execute 'cnoremap <silent> <nowait> ' . a:lhs . ' ' . a:rhs
68-
endif
66+
execute 'cnoremap <silent> <nowait> ' .. a:lhs .. ' ' .. a:rhs
6967
endfunction
7068

7169
function! s:map_picker() abort

0 commit comments

Comments
 (0)