Permalink
Browse files

Version 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 this function now.  Thus, the g:bufExplorerShowDirectories feature is only available when using vim 7.0 and above.
  • Loading branch information...
1 parent 37b0084 commit 55a2e1c97c3b06d90853dda84f242db31c4c3f58 jeff lanzarotta committed with Oct 3, 2005
Showing with 16 additions and 7 deletions.
  1. +8 −2 doc/bufexplorer.txt
  2. +8 −5 plugin/bufexplorer.vim
View
10 doc/bufexplorer.txt
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 30 Sept 2005
+*bufexplorer.txt* Buffer Explorer Last Change: 03 Oct 2005
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.0.3
+ Version 7.0.4
Plugin for easily exploring (or browsing) open buffers
@@ -126,10 +126,16 @@ Directories usually show up in the list from using a command like ":e .".
To control whether to show directories in the buffer list or not, use: >
let g:bufExplorerShowDirectories=1 " Show directories.
let g:bufExplorerShowDirectories=0 " Don't show directories.
+Note: This is only available when using vim 7.0 and above.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+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
+ this function now. Thus, the g:bufExplorerShowDirectories feature is
+ only available when using vim 7.0 and above.
7.0.3 - Thanks to Erwin Waterlander for finding a problem when the last
buffer was deleted. This issue got me to rewrite the buffer display
logic (which I've wanted to do for sometime now).
View
13 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: Friday, 30 September 2005
-" Version: 7.0.3
+" Last Changed: Monday, 3 October 2005
+" Version: 7.0.4
" 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'.
@@ -506,10 +506,13 @@ function! <SID>BuildBufferList()
" Get filename & Remove []'s & ()'s
let shortBufName = fnamemodify(bufName, ":t")
let pathName = fnamemodify(bufName, ":p:h")
- let _ftype = getftype(bufName)
- if _ftype == "dir" && g:bufExplorerShowDirectories == 1
- let shortBufName = "<DIRECTORY>"
+ if v:version >= 700
+ let _ftype = getftype(bufName)
+
+ if _ftype == "dir" && g:bufExplorerShowDirectories == 1
+ let shortBufName = "<DIRECTORY>"
+ end
end
" If the buffer is modified then mark it

0 comments on commit 55a2e1c

Please sign in to comment.