Skip to content

Commit

Permalink
Do not jump to last opened buffer in buffer search mode
Browse files Browse the repository at this point in the history
close #1
  • Loading branch information
tracyone committed Apr 19, 2018
1 parent a6d3761 commit 8c4ed68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/neomakemp.vim
Expand Up @@ -110,7 +110,14 @@ function! neomakemp#global_search(pattern,...) abort
if and(l:flag, 0x01)
if a:1 == 1
let l:bufname=[]
:silent bufdo call add(l:bufname,expand('%'))
let l:last_buffer = bufnr('$')
let l:n = 1
while l:n <= l:last_buffer
if buflisted(l:n)
:silent call insert(l:bufname,bufname(l:n))
endif
let l:n = l:n+1
endwhile
call extend(l:args, l:bufname)
endif
else
Expand Down

0 comments on commit 8c4ed68

Please sign in to comment.