diff --git a/doc/bufexplorer.txt b/doc/bufexplorer.txt index d7706ba..f0623a9 100644 --- a/doc/bufexplorer.txt +++ b/doc/bufexplorer.txt @@ -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* diff --git a/plugin/bufexplorer.vim b/plugin/bufexplorer.vim index 2f52b66..de6866a 100644 --- a/plugin/bufexplorer.vim +++ b/plugin/bufexplorer.vim @@ -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 be :BufExplorer -"XXXXX nmap bs :SBufExplorer " 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