Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/autoload/unite.vim b/autoload/unite.vim
  2. index f25424d..fad4dbe 100644
  3. --- a/autoload/unite.vim
  4. +++ b/autoload/unite.vim
  5. @@ -1775,12 +1775,11 @@ function! s:call_hook(sources, hook_name)"{{{
  6.    endfor
  7.  endfunction"}}}
  8.  function! s:is_cmdwin()"{{{
  9. -  try
  10. -    noautocmd wincmd p
  11. -    noautocmd wincmd p
  12. -  catch /^Vim(wincmd):E11:/
  13. +  silent! noautocmd wincmd p
  14. +  silent! noautocmd wincmd p
  15. +  if v:errmsg =~ '^E11:'
  16.      return 1
  17. -  endtry
  18. +  endif
  19.  
  20.    return 0
  21.  endfunction"}}}