Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 7.0.5

Thanks to Mun Johl for pointing out a bug that if a buffer was modified, the '+' was not showing up correctly.
  • Loading branch information...
commit bf6e908e2d556011bce6cd0d39ed02b851176980 1 parent 55a2e1c
jeff lanzarotta authored committed
Showing with 20 additions and 16 deletions.
  1. +4 −2 doc/bufexplorer.txt
  2. +16 −14 plugin/bufexplorer.vim
View
6 doc/bufexplorer.txt
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 03 Oct 2005
+*bufexplorer.txt* Buffer Explorer Last Change: 18 Oct 2005
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.0.4
+ Version 7.0.5
Plugin for easily exploring (or browsing) open buffers
@@ -131,6 +131,8 @@ Note: This is only available when using vim 7.0 and above.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+7.0.5 - Thanks to Mun Johl for pointing out a bug that if a buffer was
+ modified, the '+' was not showing up correctly.
7.0.4 - Fixed a problem discovered first by Xiangjiang Ma. Well since I've
been using vim 7.0 and not 6.3, I started using a function (getftype)
that is not in 6.3. So for backward compatibility, I conditionaly use
View
30 plugin/bufexplorer.vim
@@ -10,8 +10,8 @@
" Name Of File: bufexplorer.vim
" Description: Buffer Explorer Vim Plugin
" Maintainer: Jeff Lanzarotta (delux256-vim at yahoo dot com)
-" Last Changed: Monday, 3 October 2005
-" Version: 7.0.4
+" Last Changed: Tuesday, 18 October 2005
+" Version: See g:loaded_bufexplorer for version number.
" Usage: Normally, this file should reside in the plugins
" directory and be automatically sourced. If not, you must
" manually source this file using ':source bufexplorer.vim'.
@@ -39,7 +39,7 @@ if exists("g:loaded_bufexplorer") || &cp
endif
" Version number.
-let g:loaded_bufexplorer = "7.0.3"
+let g:loaded_bufexplorer = "7.0.5"
" Setup the global MRUList.
let g:MRUList = ","
@@ -475,17 +475,19 @@ function! <SID>BuildBufferList()
if (getbufvar(i, '&buflisted') == 1)
let bufName = bufname(i)
- let length = strlen(i)
+ if (bufName != '[BufExplorer]')
+ let length = strlen(i)
- if (maxBufferNbrWidth < length)
- let maxBufferNbrWidth = length
- endif
+ if (maxBufferNbrWidth < length)
+ let maxBufferNbrWidth = length
+ endif
- let shortBufName = fnamemodify(bufName, ":t")
- let length = strlen(shortBufName)
+ let shortBufName = fnamemodify(bufName, ":t")
+ let length = strlen(shortBufName)
- if (maxBufferNameWidth < length)
- let maxBufferNameWidth = length
+ if (maxBufferNameWidth < length)
+ let maxBufferNameWidth = length
+ endif
endif
endif
endwhile
@@ -515,7 +517,7 @@ function! <SID>BuildBufferList()
end
end
- " If the buffer is modified then mark it
+ " If the buffer is modified then mark it.
if (getbufvar(i, '&modified') == 1)
let modified = "+"
else
@@ -542,7 +544,7 @@ function! <SID>BuildBufferList()
let diffWidth = diffWidth - 1
endwhile
- let fileNames = fileNames.nbrPad.i." ".modified." ".shortBufName.namePad.pathName."\n"
+ let fileNames = fileNames.nbrPad.i." ".modified." ".shortBufName.namePad.pathName."\n"
else
let separator = ""
@@ -554,7 +556,7 @@ function! <SID>BuildBufferList()
end
end
- let fileNames = fileNames.nbrPad.i." ".modified." ".pathName.separator.shortBufName."\n"
+ let fileNames = fileNames.nbrPad.i." ".modified." ".pathName.separator.shortBufName."\n"
end
endif
endif
Please sign in to comment.
Something went wrong with that request. Please try again.