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 d6540b2588044f4028f6323e421e2e90116c8af7 (tree)
parent 22cc877e64a02d21141423afaff3ff6861bf03b6
Author: Tim Pope <code@tpope.net>
Date:   Thu, 27 Mar 2014 18:01:06 -0400

Work around issue using buffer number rather than name

Observed on the OS X Mavericks install of Vim 7.3.

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

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -458,15 +458,15 @@ function! fugitive#buffer(...) abort endfunction function! s:buffer_getvar(var) dict abort - return getbufvar(self['#'],a:var) + return getbufvar(bufname(self['#']), a:var) endfunction function! s:buffer_setvar(var,value) dict abort - return setbufvar(self['#'],a:var,a:value) + return setbufvar(bufname(self['#']), a:var, a:value) endfunction function! s:buffer_getline(lnum) dict abort - return getbufline(self['#'],a:lnum)[0] + return getbufline(bufname(self['#']), a:lnum)[0] endfunction function! s:buffer_repo() dict abort