Skip to content

Commit cb57890

Browse files
committed
Updated plugins
1 parent 901655e commit cb57890

File tree

7 files changed

+66
-10
lines changed

7 files changed

+66
-10
lines changed

sources_non_forked/vim-fugitive/autoload/fugitive.vim

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,7 @@ function! s:FinishCommit() abort
34893489
call setbufvar(buf, 'fugitive_commit_arguments', [])
34903490
if getbufvar(buf, 'fugitive_commit_rebase')
34913491
call setbufvar(buf, 'fugitive_commit_rebase', 0)
3492-
let s:rebase_continue = s:Dir(buf)
3492+
let s:rebase_continue = [s:Dir(buf), 0]
34933493
endif
34943494
return s:CommitSubcommand(-1, -1, 0, 0, '', args, s:Dir(buf))
34953495
endif
@@ -3696,11 +3696,11 @@ function! s:MergeRebase(cmd, bang, mods, args, ...) abort
36963696
call fugitive#ReloadStatus(dir, 1)
36973697
if empty(filter(getqflist(),'v:val.valid && v:val.type !=# "I"'))
36983698
if a:cmd =~# '^rebase' &&
3699-
\ filereadable(fugitive#Find('.git/rebase-merge/amend', dir)) &&
37003699
\ filereadable(fugitive#Find('.git/rebase-merge/done', dir)) &&
3701-
\ get(readfile(fugitive#Find('.git/rebase-merge/done', dir)), -1, '') =~# '^[^e]'
3700+
\ get(readfile(fugitive#Find('.git/rebase-merge/done', dir)), -1, '') =~# '^[^bep]'
37023701
cclose
3703-
return 'exe ' . string(mods . 'Gcommit --amend -n -F ' . s:fnameescape(fugitive#Find('.git/rebase-merge/message', dir)) . ' -e') . '|let b:fugitive_commit_rebase = 1'
3702+
let amend = filereadable(fugitive#Find('.git/rebase-merge/amend', dir)) ? '--amend ' : ''
3703+
return 'exe ' . string(mods . 'Gcommit ' . amend . '-n -F ' . s:fnameescape(fugitive#Find('.git/rebase-merge/message', dir)) . ' -e') . '|let b:fugitive_commit_rebase = 1'
37043704
elseif !had_merge_msg && filereadable(fugitive#Find('.git/MERGE_MSG', dir))
37053705
cclose
37063706
return mods . 'Gcommit --no-status -n -t '.s:fnameescape(fugitive#Find('.git/MERGE_MSG', dir))
@@ -3758,18 +3758,27 @@ function! s:PullSubcommand(line1, line2, range, bang, mods, args) abort
37583758
return s:MergeRebase('pull', a:bang, a:mods, a:args)
37593759
endfunction
37603760

3761+
function! s:RebaseContinue(arg, ...) abort
3762+
let [dir, edit_todo] = a:arg
3763+
exe s:MergeRebase('rebase', 0, '', [edit_todo && getfsize(fugitive#Find('.git/rebase-merge/git-rebase-todo', dir)) <= 0 ? '--abort' : '--continue'], dir)
3764+
endfunction
3765+
37613766
augroup fugitive_merge
37623767
autocmd!
37633768
autocmd VimLeavePre,BufDelete git-rebase-todo
37643769
\ if getbufvar(+expand('<abuf>'), '&bufhidden') ==# 'wipe' |
37653770
\ call s:RebaseClean(expand('<afile>')) |
37663771
\ if getfsize(FugitiveFind('.git/rebase-merge/done', +expand('<abuf>'))) == 0 |
3767-
\ let s:rebase_continue = FugitiveGitDir(+expand('<abuf>')) |
3772+
\ let s:rebase_continue = [FugitiveGitDir(+expand('<abuf>')), 1] |
37683773
\ endif |
37693774
\ endif
37703775
autocmd BufEnter * nested
37713776
\ if exists('s:rebase_continue') |
3772-
\ exe s:MergeRebase('rebase', 0, '', [getfsize(fugitive#Find('.git/rebase-merge/git-rebase-todo', s:rebase_continue)) > 0 ? '--continue' : '--abort'], remove(s:, 'rebase_continue')) |
3777+
\ if has('timers') |
3778+
\ call timer_start(0, function('s:RebaseContinue', [remove(s:, 'rebase_continue')])) |
3779+
\ else |
3780+
\ call s:RebaseContinue(remove(s:, 'rebase_continue')) |
3781+
\ endif |
37733782
\ endif
37743783
augroup END
37753784

@@ -4393,7 +4402,7 @@ endfunction
43934402

43944403
function! s:AskPassArgs(dir) abort
43954404
if (len($DISPLAY) || len($TERM_PROGRAM) || has('gui_running')) && fugitive#GitVersion(1, 8) &&
4396-
\ empty($GIT_ASKPASS) && empty($SSH_ASKPASS) && empty(fugitive#Config('core.askPass', a:dir))
4405+
\ empty($GIT_ASKPASS) && empty($SSH_ASKPASS) && empty(get(fugitive#Config(a:dir), 'core.askpass', []))
43974406
if s:executable(s:ExecPath() . '/git-gui--askpass')
43984407
return ['-c', 'core.askPass=' . s:ExecPath() . '/git-gui--askpass']
43994408
elseif s:executable('ssh-askpass')

sources_non_forked/vim-fugitive/plugin/fugitive.vim

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,23 @@ function! s:Tree(path) abort
177177
endif
178178
endfunction
179179

180+
function! s:CeilingDirectories() abort
181+
if !exists('s:ceiling_directories')
182+
let s:ceiling_directories = []
183+
let resolve = 1
184+
for dir in split($GIT_CEILING_DIRECTORIES, has('win32') ? ';' : ':', 1)
185+
if empty(dir)
186+
let resolve = 0
187+
elseif resolve
188+
call add(s:ceiling_directories, resolve(dir))
189+
else
190+
call add(s:ceiling_directories, dir)
191+
endif
192+
endfor
193+
endif
194+
return s:ceiling_directories + get(g:, 'ceiling_directories', [])
195+
endfunction
196+
180197
function! FugitiveExtractGitDir(path) abort
181198
let path = s:Slash(a:path)
182199
if path =~# '^fugitive:'
@@ -203,7 +220,7 @@ function! FugitiveExtractGitDir(path) abort
203220
if root =~# '\v^//%([^/]+/?)?$'
204221
break
205222
endif
206-
if index(split($GIT_CEILING_DIRECTORIES, ':'), root) >= 0
223+
if index(s:CeilingDirectories(), root) >= 0
207224
break
208225
endif
209226
if root ==# $GIT_WORK_TREE && FugitiveIsGitDir(env_git_dir)

sources_non_forked/vim-gitgutter/plugin/gitgutter.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ augroup gitgutter
244244
autocmd ShellCmdPost * call gitgutter#all(1)
245245
autocmd BufLeave term://* call gitgutter#all(1)
246246

247-
autocmd BufWritePost fugitive://*//0/* call gitgutter#all(1)
247+
autocmd User FugitiveChanged call gitgutter#all(1)
248248

249249
autocmd BufFilePre * GitGutterBufferDisable
250250
autocmd BufFilePost * GitGutterBufferEnable

sources_non_forked/vim-ruby/indent/ruby.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ let s:syng_strcom = s:syng_stringdoc + [
6464
\ 'PercentStringDelimiter',
6565
\ 'PercentSymbolDelimiter',
6666
\ 'Regexp',
67+
\ 'RegexpCharClass',
6768
\ 'RegexpDelimiter',
6869
\ 'RegexpEscape',
6970
\ 'StringDelimiter',

sources_non_forked/vim-ruby/spec/indent/continuations_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,13 @@ def foo
314314
end
315315
EOF
316316
end
317+
318+
specify "wrong continuation within regex character class" do
319+
# See https://github.com/vim-ruby/vim-ruby/issues/405 for details
320+
321+
assert_correct_indenting <<~EOF
322+
extname = file.extname(url).split(/[?#]/).first
323+
target_file = tempfile.new()
324+
EOF
325+
end
317326
end

sources_non_forked/vim-snippets/snippets/systemverilog.snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extends verilog
22

33
# Foreach Loop
4-
snippet fe
4+
snippet forea
55
foreach (${1}) begin
66
${0}
77
end

sources_non_forked/vim-snippets/snippets/verilog.snippets

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,23 @@ snippet mod
6161
module ${1:module_name} (${2});
6262
${0}
6363
endmodule
64+
# For
65+
snippet for
66+
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) begin
67+
${4}
68+
end
69+
# Forever
70+
snippet forev
71+
forever begin
72+
${0}
73+
end
74+
# Function
75+
snippet fun
76+
function ${1:void} ${2:name}(${3});
77+
${0}
78+
endfunction: $2
79+
# Task
80+
snippet task
81+
task ${1:name}(${2});
82+
${0}
83+
endtask: $1

0 commit comments

Comments
 (0)