Permalink
Browse files

Version 7.3.1

Thanks go out to Brett Rasmussen for pointing out that the feature added way back in version 7.2.3 by Yuriy Ershov to automatically reposition the cursor to the line containing the active buffer, was no longer in the plugin.  That bit of code has been re-added and all is well.
  • Loading branch information...
1 parent 9fb9495 commit 28b30acc380742c027bd2c07bf37b37e8f5562e4 jeff lanzarotta committed with Dec 6, 2012
Showing with 18 additions and 4 deletions.
  1. +8 −2 doc/bufexplorer.txt
  2. +10 −2 plugin/bufexplorer.vim
View
@@ -1,7 +1,7 @@
-*bufexplorer.txt* Buffer Explorer Last Change: 09 Oct 2012
+*bufexplorer.txt* Buffer Explorer Last Change: 04 Dec 2012
Buffer Explorer *buffer-explorer* *bufexplorer*
- Version 7.3.0
+ Version 7.3.1
Plugin for easily exploring (or browsing) Vim |:buffers|.
@@ -213,6 +213,12 @@ The default is to use the global &splitright.
===============================================================================
CHANGE LOG *bufexplorer-changelog*
+7.3.1 - Fix:
+ * Thanks go out to Brett Rasmussen for pointing out that the feature
+ added way back in version 7.2.3 by Yuriy Ershov to automatically
+ reposition the cursor to the line containing the active buffer, was
+ no longer in the plugin. That bit of code has been re-added and
+ all is well.
7.3.0 - It has been quite a while since I published a new version and this
is the first version since Vim 7.3 was released.
* Thanks to Tim Johnson for testing out this new version.
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: Tuesday, 09 Oct 2012
+" Last Changed: Tuesday, 04 Dec 2012
" Version: See g:bufexplorer_version for version number.
" Usage: This file should reside in the plugin directory and be
" automatically sourced.
@@ -38,6 +38,7 @@
" History: See supplied documentation.
" Issues: 'D' and 'd' remove the buffer from the list but the list is not
" displayed correctly.
+" - Add ability to open a buffer in a new split when \be is used.
"=============================================================================
" Plugin Code {{{1
@@ -48,7 +49,7 @@ endif
"2}}}
" Version number
-let g:bufexplorer_version = "7.3.0"
+let g:bufexplorer_version = "7.3.1"
" Check for Vim version {{{2
if v:version < 700
@@ -391,6 +392,11 @@ function! BufExplorer(open)
endif
call s:DisplayBufferList()
+
+ " Position the cursor in the newly displayed list on the line representing
+ " the active buffer. The active buffer is the line with the '%' character
+ " in it.
+ execute search("%")
endfunction
" DisplayBufferList {{{2
@@ -830,12 +836,14 @@ endfunction
function! s:DeleteBuffer(buf, mode)
" This routine assumes that the buffer to be removed is on the current line.
try
+ " Wipe/Delete buffer from Vim.
if a:mode == "wipe"
exe "silent bwipe" a:buf
else
exe "silent bdelete" a:buf
endif
+ " Delete the buffer from the list on screen.
setlocal modifiable
normal! "_dd
setlocal nomodifiable

0 comments on commit 28b30ac

Please sign in to comment.