Skip to content

Commit

Permalink
Version 1.07
Browse files Browse the repository at this point in the history
Wiping out all buffers with '%bwipeout' was reported to be more reliable by demon386
  • Loading branch information
Yuri Klubakov authored and vim-scripts committed Apr 10, 2015
1 parent 8e9fcc4 commit 845d35b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/sessionman.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
" Copyright (c) Yuri Klubakov
"
" Author: Yuri Klubakov <yuri.mlists at gmail dot com>
" Version: 1.06 (2011-05-06)
" Version: 1.07 (2015-04-08)
" Requires: Vim 6
" License: GPL
"
Expand Down Expand Up @@ -112,7 +112,7 @@ function! s:OpenSession(name)
endif
try
set eventignore=all
execute 'silent! 1,' . bufnr('$') . 'bwipeout!'
execute 'silent! %bwipeout!'
let n = bufnr('%')
execute 'silent! so ' . s:sessions_path . '/' . a:name
execute 'silent! bwipeout! ' . n
Expand All @@ -136,7 +136,7 @@ endfunction

function! s:CloseSession()
call s:RestoreDefaults()
execute 'silent! 1,' . bufnr('$') . 'bwipeout!'
execute 'silent! %bwipeout!'
if has('cscope')
silent! cscope kill -1
endif
Expand Down

0 comments on commit 845d35b

Please sign in to comment.