Просмотр исходного кода

Merge pull request #101 from alex-courtis/#100-Not-Ignoring-temporary-buffers-with-buftype-set

Ignore temporary buffers with buftype set
jlanzarotta 3 лет назад
Родитель
Сommit
4b1d3adca7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugin/bufexplorer.vim

+ 1 - 1
plugin/bufexplorer.vim

@@ -313,7 +313,7 @@ endfunction
 " ShouldIgnore {{{2
 function! s:ShouldIgnore(buf)
     " Ignore temporary buffers with buftype set.
-    if empty(getbufvar(a:buf, "&buftype") == 0)
+    if empty(getbufvar(a:buf, "&buftype")) == 0
         return 1
     endif