Skip to content

Commit 968275c

Browse files
committed
fix: do not override existing mapping with default mappings
1 parent 61a19c7 commit 968275c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/fall/mapping.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +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')
66+
if !empty(hasmapto(a:rhs, 'c')) && empty(maparg(a:lhs, 'c'))
6767
execute 'cnoremap <silent> <nowait> ' . a:lhs . ' ' . a:rhs
6868
endif
6969
endfunction

0 commit comments

Comments
 (0)