Permalink
Browse files

Fix issue #6, patch by lyokha, thanks!

  • Loading branch information...
1 parent b660057 commit c4df69f21be208ff457853cd644a5788b5a04633 @chrisbra committed Jun 18, 2012
Showing with 8 additions and 3 deletions.
  1. +5 −3 autoload/recover.vim
  2. +3 −0 doc/recoverPlugin.txt
@@ -76,9 +76,11 @@ fu! s:CheckRecover() "{{{1
" Not sure, why this needs feedkeys
" Sometimes cursor is wrong, I hate when this happens
" Cursor is wrong only when there is a single buffer open, a simple
- " workaround for that is to check if bufnr('') is 1: in this case
- " ':wincmd l\n:0\n' must be fed
- if bufnr('') == 1
+ " workaround for that is to check if bufnr('') is 1 and total number
+ " of windows in current tab is less than 3 (i.e. no windows were
+ " autoopen): in this case ':wincmd l\n:0\n' must be fed to
+ " feedkeys
+ if bufnr('') == 1 && winnr('$') < 3
call feedkeys(":wincmd l\n", 't')
endif
call feedkeys(":0\n", 't')
@@ -103,6 +103,9 @@ third line of this document.
: CheckSwapFileExists() hangs, when a swap
file was not found, make sure, s:Swapname()
returns a valid file name
+ : fix issue 6 (
+ https://github.com/chrisbra/Recover.vim/issues/6
+ patch by lyokha, thanks!)
0.14: Mar 31, 2012 : still some problems with issue #4
0.13: Mar 29, 2012 : fix issue 3 (
https://github.com/chrisbra/Recover.vim/issues/3

0 comments on commit c4df69f

Please sign in to comment.