Skip to content

Commit

Permalink
Merge pull request #1236 from unikuragit/pr
Browse files Browse the repository at this point in the history
Pr
  • Loading branch information
Shougo committed Apr 14, 2018
2 parents cc0af47 + 17a9de8 commit 7252fc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/unite/sources/grep.vim
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ endfunction"}}}

function! unite#sources#grep#parse(line) abort "{{{
let ret = matchlist(a:line,
\ '^\([a-zA-Z]\?[^:]*\):\(\d\+\)\%(:\(\d\+\)\)\?:\(.*\)$')
\ '^\(\%([a-zA-Z]:\)\?[^:]*\):\(\d\+\)\%(:\(\d\+\)\)\?:\(.*\)$')
if empty(ret) || ret[1] == '' || ret[4] == ''
return []
endif
Expand Down
4 changes: 4 additions & 0 deletions autoload/vital/_unite/System/File.vim
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ elseif s:is_windows
let src = iconv(src, &encoding, 'char')
let dest = iconv(dest, &encoding, 'char')
endif
let src = '"'. src .'"'
let dest = '"'. dest .'"'
let cmd_exe = (&shell =~? 'cmd\.exe$' ? '' : 'cmd /c ')
call system(cmd_exe . 'move /y ' . src . ' ' . dest)
return !v:shell_error
Expand Down Expand Up @@ -272,6 +274,8 @@ elseif s:is_windows
let [src, dest] = [a:src, a:dest]
let src = substitute(src, '/', '\', 'g')
let dest = substitute(dest, '/', '\', 'g')
let src = '"'. src .'"'
let dest = '"'. dest .'"'
let cmd_exe = (&shell =~? 'cmd\.exe$' ? '' : 'cmd /c ')
call system(cmd_exe . 'copy /y ' . src . ' ' . dest)
return !v:shell_error
Expand Down

0 comments on commit 7252fc3

Please sign in to comment.