From 72d382077c65d21e0c9e7e97cd5682729cb3de08 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 1 Apr 2014 18:59:01 -0400 Subject: [PATCH] Revert "Work around issue using buffer number rather than name" This reverts commit d6540b2588044f4028f6323e421e2e90116c8af7, which caused all sorts of breakages with buffer names with brackets in them. This was greatly exacerbated by airline.vim setting an erroneous b:git_dir in plugin buffers based on the current working directory. Closes #464. Closes #463. Closes #461. --- plugin/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 4e541cd..4af2620 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -460,15 +460,15 @@ function! fugitive#buffer(...) abort endfunction function! s:buffer_getvar(var) dict abort - return getbufvar(bufname(self['#']), a:var) + return getbufvar(self['#'],a:var) endfunction function! s:buffer_setvar(var,value) dict abort - return setbufvar(bufname(self['#']), a:var, a:value) + return setbufvar(self['#'],a:var,a:value) endfunction function! s:buffer_getline(lnum) dict abort - return get(getbufline(bufname(self['#']), a:lnum), 0, '') + return get(getbufline(self['#'], a:lnum), 0, '') endfunction function! s:buffer_repo() dict abort