Permalink
Browse files

Don't save local statusline

Close #2
  • Loading branch information...
1 parent a291c1f commit 988d845183ddb06fc26b93e83e059e175f2d38a6 @kien committed Jan 13, 2012
Showing with 7 additions and 6 deletions.
  1. +6 −5 autoload/tabman.vim
  2. +1 −1 readme.md
View
@@ -257,7 +257,6 @@ fu! s:render()
endfo
let [hlg, &l:ma] = ['%#LineNr# ', 0]
let &l:stl = hlg.s:name.' %*%='.hlg.'Tab #'.currtab.' %*'
- let s:save_stl = &l:stl
if exists('s:cview')
cal winrestview(s:cview)
en
@@ -369,10 +368,12 @@ fu! tabman#toggle()
endf
if has('autocmd')
- au BufEnter TabMan cal s:ManUpdate(1)
- au CursorMoved TabMan let s:cview = winsaveview()
- au WinLeave,BufLeave TabMan let &l:stl = s:save_stl
- au TabEnter,CursorHold * cal s:ManUpdate(2)
+ aug TabManAug
+ au!
+ au BufEnter TabMan cal s:ManUpdate(1)
+ au CursorMoved TabMan let s:cview = winsaveview()
+ au TabEnter,CursorHold * cal s:ManUpdate(2)
+ aug END
en
"}}}
View
@@ -47,4 +47,4 @@ Screenshot:
Once TabMan’s opened, press ? for help on extra keymaps.
-[1]: http://i.imgur.com/Hbi90.png
+[1]: http://i.imgur.com/HnpGG.png

0 comments on commit 988d845

Please sign in to comment.