Skip to content

Commit 3ea8efb

Browse files
committed
Launch xdg-open in the background
Fixes tpope#172. Works around not working inside GVim.
1 parent 733a1e9 commit 3ea8efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ function! s:initOpenURL() abort
14591459
elseif has("gui_win32")
14601460
command -bar -nargs=1 OpenURL :!start cmd /cstart /b <args>
14611461
elseif executable("xdg-open")
1462-
command -bar -nargs=1 OpenURL :!xdg-open <args>
1462+
command -bar -nargs=1 OpenURL :!xdg-open <args> &
14631463
elseif executable("sensible-browser")
14641464
command -bar -nargs=1 OpenURL :!sensible-browser <args>
14651465
elseif executable('launchy')

0 commit comments

Comments
 (0)