Skip to content

Commit 46c9fb1

Browse files
committed
Bug fix for file type plug-in reloading (also hide last buffer)
1 parent b767e0c commit 46c9fb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/xolox/reload.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
2-
" Last Change: November 26, 2011
2+
" Last Change: December 1, 2011
33
" Author: Peter Odding
44
" URL: http://peterodding.com/code/vim/reload/
55

6-
let g:xolox#reload#version = '0.6.7'
6+
let g:xolox#reload#version = '0.6.8'
77

88
" Patterns to match various types of Vim script names. {{{1
99

@@ -103,7 +103,7 @@ function! s:reload_buffers(start_time, filetype, friendly_name, script_type, var
103103
silent hide bufdo if &ft == a:filetype | execute 'let' a:variable '= 1' | endif
104104
call xolox#reload#windows()
105105
" Restore the user's context.
106-
silent execute 'buffer' bufnr_save
106+
silent execute 'hide buffer' bufnr_save
107107
call winrestview(view_save)
108108
" Disable the SwapExists automatic command.
109109
unlet s:reloading_buffers

0 commit comments

Comments
 (0)