diff --git a/README.md b/README.md index a17ff82..67c976d 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ from the source code of the miscellaneous scripts using the Python module 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 diff --git a/autoload/xolox/misc.vim b/autoload/xolox/misc.vim index a806bee..6b6b482 100644 --- a/autoload/xolox/misc.vim +++ b/autoload/xolox/misc.vim @@ -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' diff --git a/autoload/xolox/misc/open.vim b/autoload/xolox/misc/open.vim index 9970f87..270b287 100644 --- a/autoload/xolox/misc/open.vim +++ b/autoload/xolox/misc/open.vim @@ -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)) diff --git a/doc/misc.txt b/doc/misc.txt index 504d949..5dc3a34 100644 --- a/doc/misc.txt +++ b/doc/misc.txt @@ -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*