From dd39902e3dcd45640588864246129f3fa1559ab6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 30 Sep 2021 12:41:59 -0400 Subject: [PATCH] Minor performance improvement to global map definition --- plugin/fugitive.vim | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 7fce4b8..c28fd5c 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -660,15 +660,12 @@ endif let s:nowait = v:version >= 704 ? '' : '' -function! s:Map(mode, lhs, rhs, ...) abort - for mode in split(a:mode, '\zs') - let flags = (a:0 ? a:1 : '') . (a:rhs =~# '' ? '' : '