Skip to content

Commit

Permalink
Bug fix for xolox#misc#open#url() on Mac OS X (xolox/vim-shell#18)
Browse files Browse the repository at this point in the history
Related to vim-shell issue #18:
  xolox/vim-shell#18
  • Loading branch information
xolox committed Jun 19, 2013
1 parent aea5599 commit 732cc21
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -38,7 +38,7 @@ from the source code of the miscellaneous scripts using the Python module
<!-- Start of generated documentation -->

The documentation of the 68 functions below was extracted from
15 Vim scripts on June 19, 2013 at 21:05.
15 Vim scripts on June 19, 2013 at 22:53.

### Handling of special buffers

Expand Down
2 changes: 1 addition & 1 deletion autoload/xolox/misc.vim
Expand Up @@ -4,4 +4,4 @@
" Last Change: June 19, 2013
" URL: http://peterodding.com/code/vim/misc/

let g:xolox#misc#version = '1.6.2'
let g:xolox#misc#version = '1.6.3'
5 changes: 4 additions & 1 deletion autoload/xolox/misc/open.vim
Expand Up @@ -67,7 +67,10 @@ function! xolox#misc#open#url(url) " {{{1
let url = 'mailto:' . url
endif
endif
if has('unix') && !has('gui_running') && $DISPLAY == ''
let on_unix = has('unix')
let not_on_mac = !xolox#misc#os#is_mac()
let no_gui_available = (has('gui_running') == 0 && $DISPLAY == '')
if on_unix && not_on_mac && no_gui_available
call xolox#misc#msg#debug("vim-misc %s: Using command line web browser because no GUI seems to be available ..", g:xolox#misc#version)
for browser in ['lynx', 'links', 'w3m']
call xolox#misc#msg#debug("vim-misc %s: Checking whether %s command line web browser is installed ..", g:xolox#misc#version, string(browser))
Expand Down
2 changes: 1 addition & 1 deletion doc/misc.txt
Expand Up @@ -138,7 +138,7 @@ from the source code of the miscellaneous scripts using the Python module
'vimdoctool.py' included in vim-tools [5].

The documentation of the 68 functions below was extracted from 15 Vim scripts
on June 19, 2013 at 21:05.
on June 19, 2013 at 22:53.

-------------------------------------------------------------------------------
*misc-handling-of-special-buffers*
Expand Down

0 comments on commit 732cc21

Please sign in to comment.