File data/vim/plugin/vifm.vim changed (mode: 100644) (index 8ff6d87ae..bfdad76e2) |
4 |
4 |
" Last Change: 2001 November 29 |
" Last Change: 2001 November 29 |
5 |
5 |
|
|
6 |
6 |
" Maintainer: xaizek <xaizek@openmailbox.org> |
" Maintainer: xaizek <xaizek@openmailbox.org> |
7 |
|
" Last Change: 2017 May 28 |
|
|
7 |
|
" Last Change: 2017 May 30 |
8 |
8 |
|
|
9 |
9 |
" vifm and vifm.vim can be found at https://vifm.info/ |
" vifm and vifm.vim can be found at https://vifm.info/ |
10 |
10 |
|
|
|
... |
... |
function! s:HandleRunResults(exitcode, listf, typef, editcmd) |
178 |
178 |
let flist = flist[1:-1] |
let flist = flist[1:-1] |
179 |
179 |
endif |
endif |
180 |
180 |
|
|
|
181 |
|
" We emulate :args to not leave unnamed buffer around after we open our |
|
182 |
|
" buffers. |
181 |
183 |
if editcmd == 'edit' && len(flist) > 1 |
if editcmd == 'edit' && len(flist) > 1 |
182 |
184 |
silent! %argdelete |
silent! %argdelete |
183 |
185 |
endif |
endif |
|
... |
... |
function! s:HandleRunResults(exitcode, listf, typef, editcmd) |
191 |
193 |
|
|
192 |
194 |
" Go to the first file working around possibility that :drop command is not |
" Go to the first file working around possibility that :drop command is not |
193 |
195 |
" evailable, if possible |
" evailable, if possible |
194 |
|
if s:has_drop |
|
195 |
|
execute 'drop' firstfile |
|
196 |
|
elseif editcmd == 'edit' |
|
|
196 |
|
if editcmd == 'edit' |
197 |
197 |
execute 'buffer' fnamemodify(firstfile, ':.') |
execute 'buffer' fnamemodify(firstfile, ':.') |
|
198 |
|
elseif s:has_drop |
|
199 |
|
" Mind that drop replaces arglist, so don't use it with :edit. |
|
200 |
|
execute 'drop' firstfile |
198 |
201 |
endif |
endif |
199 |
202 |
endfunction |
endfunction |
200 |
203 |
|
|