Fix use of <Plug> in a <script> map
References https://github.com/tpope/vim-fugitive/issues/1044
This commit is contained in:
parent
639b9f9a54
commit
251853bc1e
@ -115,7 +115,7 @@ function! s:recall() abort
|
||||
endfunction
|
||||
|
||||
function! s:map(mode, lhs, rhs, ...) abort
|
||||
let flags = (a:0 ? a:1 : '') . (a:rhs =~# '^<Plug>' ? '' : '<script>')
|
||||
let flags = (a:0 ? a:1 : '') . (a:rhs =~# '<Plug>' ? '' : '<script>')
|
||||
let head = a:lhs
|
||||
let tail = ''
|
||||
let keys = get(g:, a:mode.'remap', {})
|
||||
|
Loading…
x
Reference in New Issue
Block a user