Skip to content

Commit c924cde

Browse files
authored
Merge pull request vim-ruby#395 from datanoise/master
do not ignore a:flags parameter for key mappings
2 parents 70b6b12 + 8c2812d commit c924cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ endif
151151
function! s:map(mode, flags, map) abort
152152
let from = matchstr(a:map, '\S\+')
153153
if empty(mapcheck(from, a:mode))
154-
exe a:mode.'map' '<buffer>' a:map
154+
exe a:mode.'map' . '<buffer>' . a:flags . a:map
155155
let b:undo_ftplugin .= '|sil! '.a:mode.'unmap <buffer> '.from
156156
endif
157157
endfunction

0 commit comments

Comments
 (0)