Fix use of <Plug> in a <script> map

References https://github.com/tpope/vim-fugitive/issues/1044
This commit is contained in:
Tim Pope 2018-06-20 14:32:10 -04:00
parent 639b9f9a54
commit 251853bc1e

View File

@ -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', {})