
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.48 KB | hits: 19 | expires: Never
diff --git a/autoload/unite.vim b/autoload/unite.vim
index f25424d..fad4dbe 100644
--- a/autoload/unite.vim
+++ b/autoload/unite.vim
@@ -1775,12 +1775,11 @@ function! s:call_hook(sources, hook_name)"{{{
endfor
endfunction"}}}
function! s:is_cmdwin()"{{{
- try
- noautocmd wincmd p
- noautocmd wincmd p
- catch /^Vim(wincmd):E11:/
+ silent! noautocmd wincmd p
+ silent! noautocmd wincmd p
+ if v:errmsg =~ '^E11:'
return 1
- endtry
+ endif
return 0
endfunction"}}}