Permalink
Browse files

Fixed 2 bugs

  • Loading branch information...
1 parent e49854e commit c4ec4607a468102dd902e1be97fb91ddd3bc62d0 @adaszko committed Mar 11, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 autoload/chbuf.vim
View
@@ -26,7 +26,9 @@ endfunction " }}}
function! ScoredBuffers() " {{{
let result = []
- for buffer in range(bufnr('$'))
+ for buffer in range(1, bufnr('$'))
+ let score = 0
+
if !bufexists(buffer)
continue
endif
@@ -45,8 +47,6 @@ function! ScoredBuffers() " {{{
continue
endif
- let score = 0
-
if buflisted(buffer)
let score += 1000
else

0 comments on commit c4ec460

Please sign in to comment.