Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 7.1.4

Fixes:
  * Sometimes when a file's path has 'white space' in it, extra buffers would be created containing each piece of the path. i.e: opening c:\document and settings\test.txt would create a buffer named "and" and a buffer named "Documents". This was reported and fixed by TaCa Yoss.
  • Loading branch information...
commit 10a77acb73735c7d449b1299243e85aa7cd0baf2 1 parent 0c9b58e
jeff lanzarotta authored committed
Showing with 13 additions and 8 deletions.
  1. +9 −2 doc/bufexplorer.txt
  2. +4 −6 plugin/bufexplorer.vim
11 doc/bufexplorer.txt
View
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 15 Nov 2007
+*bufexplorer.txt* Buffer Explorer Last Change: 16 Nov 2007
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.1.3
+ Version 7.1.4
Plugin for easily exploring (or browsing) Vim |:buffers|.
@@ -146,6 +146,12 @@ The default is to split the path and file name.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+7.1.4 - Fixes:
+ * Sometimes when a file's path has 'white space' in it, extra buffers
+ would be created containing each piece of the path. i.e:
+ opening c:\document and settings\test.txt would create a buffer
+ named "and" and a buffer named "Documents". This was reported and
+ fixed by TaCa Yoss.
7.1.3 - Fixes:
* Added code to allow only one instance of the plugin to run at a
time. Thanks Dennis Hostetler.
@@ -377,6 +383,7 @@ TODO *bufexplorer-todo*
- The issuing of a ':bd' command does not always remove the buffer number from
the MRU list.
+- Look into adding '\bs' (buffer split) command back into the code.
===============================================================================
CREDITS *bufexplorer-credits*
10 plugin/bufexplorer.vim
View
@@ -10,7 +10,7 @@
" Name Of File: bufexplorer.vim
" Description: Buffer Explorer Vim Plugin
" Maintainer: Jeff Lanzarotta (delux256-vim at yahoo dot com)
-" Last Changed: Thursday, 15 November 2007
+" Last Changed: Friday, 16 November 2007
" Version: See g:bufexplorer_version for version number.
" Usage: This file should reside in the plugin directory and be
" automatically sourced.
@@ -34,7 +34,7 @@ endif
"1}}}
" Version number
-let g:bufexplorer_version = "7.1.3"
+let g:bufexplorer_version = "7.1.4"
" Check for Vim version 700 or greater {{{1
if v:version < 700
@@ -44,11 +44,9 @@ endif
" Public Interface {{{1
nmap <silent> <unique> <Leader>be :BufExplorer<CR>
-"XXXXX nmap <silent> <unique> <Leader>bs :SBufExplorer<CR>
" Create commands {{{1
command BufExplorer :call StartBufExplorer(has ("gui") ? "drop" : "hide edit")
-"XXXXX command SBufExplorer :call StartBufExplorer(has ("gui") ? "sp" : "hide edit")
" Set {{{1
function s:Set(var, default)
@@ -516,7 +514,7 @@ function s:SelectBuffer(...)
if bufloaded(_bufNbr) && g:bufExplorerFindActive
call s:Close()
let bufname = expand("#"._bufNbr.":p")
- exec "drop" bufname
+ exec "drop" substitute(bufname, "\\s", "\\\\ ", "g")
elseif (a:0)
call s:Close()
tabnew
@@ -529,7 +527,7 @@ function s:SelectBuffer(...)
exec "keepalt keepjumps silent b!" _bufNbr
else
call s:Error("Sorry, that buffer no longer exists, please select another")
- call s:WipeBuffer(_bufNbr)
+ call s:DeleteBuffer(_bufNbr, "wipe")
endif
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.