Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 55a2e1c97c3b06d90853dda84f242db31c4c3f58 1 parent 37b0084
authored October 03, 2005 vim-scripts committed October 17, 2010
10  doc/bufexplorer.txt
... ...
@@ -1,7 +1,7 @@
1  
-*bufexplorer.txt*              Buffer Explorer       Last Change: 30 Sept 2005
  1
+*bufexplorer.txt*              Buffer Explorer       Last Change: 03 Oct 2005
2 2
 
3 3
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
4  
-                                Version 7.0.3
  4
+                                Version 7.0.4
5 5
 
6 6
 Plugin for easily exploring (or browsing) open buffers
7 7
 
@@ -126,10 +126,16 @@ Directories usually show up in the list from using a command like ":e .".
126 126
 To control whether to show directories in the buffer list or not, use: >
127 127
   let g:bufExplorerShowDirectories=1   " Show directories.
128 128
   let g:bufExplorerShowDirectories=0   " Don't show directories.
  129
+Note: This is only available when using vim 7.0 and above.
129 130
 
130 131
 ===============================================================================
131 132
 CHANGE LOG                                              *bufexplorer-changelog*
132 133
 
  134
+7.0.4  - Fixed a problem discovered first by Xiangjiang Ma. Well since I've
  135
+         been using vim 7.0 and not 6.3, I started using a function (getftype)
  136
+         that is not in 6.3. So for backward compatibility, I conditionaly use
  137
+         this function now.  Thus, the g:bufExplorerShowDirectories feature is
  138
+         only available when using vim 7.0 and above.
133 139
 7.0.3  - Thanks to Erwin Waterlander for finding a problem when the last
134 140
          buffer was deleted. This issue got me to rewrite the buffer display
135 141
          logic (which I've wanted to do for sometime now).
13  plugin/bufexplorer.vim
@@ -10,8 +10,8 @@
10 10
 " Name Of File: bufexplorer.vim
11 11
 "  Description: Buffer Explorer Vim Plugin
12 12
 "   Maintainer: Jeff Lanzarotta (delux256-vim at yahoo dot com)
13  
-" Last Changed: Friday, 30 September 2005
14  
-"      Version: 7.0.3
  13
+" Last Changed: Monday, 3 October 2005
  14
+"      Version: 7.0.4
15 15
 "        Usage: Normally, this file should reside in the plugins
16 16
 "               directory and be automatically sourced. If not, you must
17 17
 "               manually source this file using ':source bufexplorer.vim'.
@@ -506,10 +506,13 @@ function! <SID>BuildBufferList()
506 506
         " Get filename & Remove []'s & ()'s
507 507
         let shortBufName = fnamemodify(bufName, ":t")
508 508
         let pathName = fnamemodify(bufName, ":p:h")
509  
-        let _ftype = getftype(bufName)
510 509
 
511  
-        if _ftype == "dir" && g:bufExplorerShowDirectories == 1
512  
-          let shortBufName = "<DIRECTORY>"
  510
+        if v:version >= 700
  511
+          let _ftype = getftype(bufName)
  512
+
  513
+          if _ftype == "dir" && g:bufExplorerShowDirectories == 1
  514
+            let shortBufName = "<DIRECTORY>"
  515
+          end
513 516
         end
514 517
 
515 518
         " If the buffer is modified then mark it

0 notes on commit 55a2e1c

Please sign in to comment.
Something went wrong with that request. Please try again.