1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 09:20:04 +08:00

Merge pull request #712 from SpaceVim/fix_windows

Fix windows support
This commit is contained in:
Wang Shidong 2017-07-08 17:59:42 +08:00 committed by GitHub
commit 0a5633c63a

View File

@ -1,5 +1,6 @@
let s:MPT = SpaceVim#api#import('prompt')
let s:JOB = SpaceVim#api#import('job')
let s:SYS = SpaceVim#api#import('system')
let s:grepid = 0
@ -125,11 +126,16 @@ function! s:open_item() abort
endif
call s:MPT._clear_prompt()
let s:MPT._quit = 1
let isfname = &isfname
if s:SYS.isWindows
set isfname-=:
endif
normal! gF
let nr = bufnr('%')
q
exe 'silent b' . nr
normal! :
let &isfname = isfname
endif
endfunction