runtime(netrw): fix syntax error in netrwPlugin.vim
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -36,8 +36,8 @@ set cpo&vim
|
|||||||
" surpress output of command; use bang for GUI applications
|
" surpress output of command; use bang for GUI applications
|
||||||
|
|
||||||
" set up redirection (avoids browser messages)
|
" set up redirection (avoids browser messages)
|
||||||
" by default, g:netrw_suppress_gx_mesg is true
|
" by default if not set, g:netrw_suppress_gx_mesg is true
|
||||||
if get(g:, ':netrw_suppress_gx_mesg', 1)
|
if get(g:, 'netrw_suppress_gx_mesg', 1)
|
||||||
if &srr =~# "%s"
|
if &srr =~# "%s"
|
||||||
let s:redir = printf(&srr, has("win32") ? "nul" : "/dev/null")
|
let s:redir = printf(&srr, has("win32") ? "nul" : "/dev/null")
|
||||||
else
|
else
|
||||||
@ -96,7 +96,7 @@ if exists(':Launch') == 2
|
|||||||
elseif executable('open')
|
elseif executable('open')
|
||||||
let s:cmd = 'open'
|
let s:cmd = 'open'
|
||||||
else
|
else
|
||||||
s:cmd = ''
|
let s:cmd = ''
|
||||||
endif
|
endif
|
||||||
function s:Open(cmd, file)
|
function s:Open(cmd, file)
|
||||||
if empty(a:cmd) && !exists('g:netrw_browsex_viewer')
|
if empty(a:cmd) && !exists('g:netrw_browsex_viewer')
|
||||||
|
|||||||
Reference in New Issue
Block a user