Permalink
Browse files

always ignore autocommands when switching windows

  • Loading branch information...
chrisbra committed Dec 10, 2013
1 parent 8daa867 commit 161d73499845fd0d9b24d76ecbcb00d7d00d6120
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/nrrwrgn.vim
View
@@ -904,7 +904,7 @@ fun! nrrwrgn#WidenRegion(force) "{{{1
if (orig_win == -1)
if bufexists(orig_buf)
" buffer not in current window, switch to it!
- exe winnr "wincmd w"
+ exe "noa" winnr "wincmd w"
exe "noa" orig_buf "b!"
" Make sure highlighting will be removed
let close = (&g:hid ? 0 : 1)
@@ -1106,7 +1106,7 @@ fun! nrrwrgn#UnifiedDiff() "{{{1
.+,$NR
endif
" Split vertically
- wincmd H
+ noa wincmd H
if i==0
silent! g/^-/d _
else

0 comments on commit 161d734

Please sign in to comment.