mirror of
1
0
Fork 0

Updated plugins

This commit is contained in:
amix 2019-12-01 20:18:45 +01:00
parent 010fe6869f
commit cf9b500ebc
2 changed files with 5 additions and 11 deletions

View File

@ -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, '/') . "\<CR>"
return '?' . escape(pattern, '/?') . "\<CR>"
else
return '/' . escape(pattern, '/?') . "\<CR>"
return '/' . escape(pattern, '/') . "\<CR>"
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\+ \)\@<!([^()]*\w \d\+)\|\d\+ \)')
let path = matchstr(line, '^\^\=[?*]*\x* \+\%(\d\+ \+\d\+ \+\)\=\zs.\{-\}\ze\s*\d\+ \%((\| *\d\+)\)')
if empty(path) && lnum
let path = get(state, 'blame_file', '')
endif

View File

@ -307,7 +307,7 @@ end
endsnippet
snippet class "class <class_name> 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