Skip to content

Commit

Permalink
Version 7.1.4
Browse files Browse the repository at this point in the history
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
jeff lanzarotta authored and vim-scripts committed Oct 18, 2010
1 parent 0c9b58e commit 10a77ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
11 changes: 9 additions & 2 deletions 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|.

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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*
Expand Down
10 changes: 4 additions & 6 deletions plugin/bufexplorer.vim
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 10a77ac

Please sign in to comment.