From cf9b500ebc9bb74666bdcf622d3f1955167f2ae0 Mon Sep 17 00:00:00 2001 From: amix Date: Sun, 1 Dec 2019 20:18:45 +0100 Subject: [PATCH] Updated plugins --- .../vim-fugitive/autoload/fugitive.vim | 12 +++--------- .../vim-snippets/UltiSnips/ruby.snippets | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/sources_non_forked/vim-fugitive/autoload/fugitive.vim b/sources_non_forked/vim-fugitive/autoload/fugitive.vim index 8f25832c..1cf4e639 100644 --- a/sources_non_forked/vim-fugitive/autoload/fugitive.vim +++ b/sources_non_forked/vim-fugitive/autoload/fugitive.vim @@ -2429,12 +2429,6 @@ function! s:ExpireStatus(bufnr) abort return '' endfunction -function! FugitiveReloadCheck() abort - let t = b:fugitive_reltime - return [t, reltimestr(reltime(s:last_time, t)), - \ reltimestr(reltime(get(s:last_times, s:cpath(s:Dir()), t), t))] -endfunction - function! s:ReloadWinStatus(...) abort if get(b:, 'fugitive_type', '') !=# 'index' || &modified return @@ -2913,9 +2907,9 @@ function! s:PatchSearchExpr(reverse) abort let pattern = '^[+-]\s*' . escape(substitute(strpart(line, 1), '^\s*\|\s*$', '', ''), '^$.*[]~\') . '\s*$' endif if a:reverse - return '?' . escape(pattern, '/') . "\" + return '?' . escape(pattern, '/?') . "\" else - return '/' . escape(pattern, '/?') . "\" + return '/' . escape(pattern, '/') . "\" endif endif return a:reverse ? '#' : '*' @@ -4821,7 +4815,7 @@ function! s:BlameCommitFileLnum(...) abort let commit = get(s:LinesError('rev-list', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, '') endif let lnum = +matchstr(line, ' \zs\d\+\ze \%((\| *\d\+)\)') - let path = matchstr(line, '^\^\=[?*]*\x* \+\%(\d\+ \+\d\+ \+\)\=\zs.\{-\}\ze\s\+\%(\%( \d\+ \)\@ def initialize ... end end" -class ${1:class_name} +class ${1:`!p snip.rv = snip.basename.title().replace('_', '')`} def initialize(${2:*args}) $0 end @@ -315,7 +315,7 @@ end endsnippet snippet module "module" -module ${1:module_name} +module ${1:`!p snip.rv = snip.basename.title().replace('_', '')`} $0 end endsnippet