motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit dff9b92cdee09dfb5030430526fde168f378c4ef (tree)
parent 419f1ee910528a1c8911063da7621cf5e756d903
Author: Tim Pope <code@tpope.net>
Date:   Sat, 21 Jun 2014 11:28:33 -0400

Fix status reload after rename

Closes #354.

Diffstat:
Mplugin/fugitive.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -882,9 +882,6 @@ function! s:StageToggle(lnum1,lnum2) abort if filename ==# '' continue endif - if !exists('first_filename') - let first_filename = filename - endif execute lnum if filename =~ ' -> ' let cmd = ['mv','--'] + reverse(split(filename,' -> ')) @@ -898,6 +895,9 @@ function! s:StageToggle(lnum1,lnum2) abort else let cmd = ['add','-A','--',filename] endif + if !exists('first_filename') + let first_filename = filename + endif let output .= call(repo.git_chomp_in_tree,cmd,s:repo())."\n" endfor if exists('first_filename')