Skip to content

Commit

Permalink
set noautocmd when wincmd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 12, 2012
1 parent 1219353 commit cf311a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/unite/sources/outline.vim
Expand Up @@ -801,7 +801,7 @@ function! s:extract_headings(context)

" Switch: current window -> source buffer's window
let cur_winnr = winnr()
execute src_winnr . 'wincmd w'
noautocmd execute src_winnr . 'wincmd w'
" Save the cursor and scroll.
let save_cursor = getpos('.')
let save_topline = line('w0')
Expand Down Expand Up @@ -851,7 +851,7 @@ function! s:extract_headings(context)
call setpos('.', save_cursor)
let &scrolloff = save_scrolloff
" Switch: current window <- source buffer's window
execute cur_winnr . 'wincmd w'
noautocmd execute cur_winnr . 'wincmd w'

" Restore the Vim options.
let &lazyredraw = save_lazyredraw
Expand Down

0 comments on commit cf311a2

Please sign in to comment.