Skip to content

Commit

Permalink
runtime(netrw): fix syntax error in netrwPlugin.vim
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
chrisbra committed Oct 28, 2024
1 parent 3d7e567 commit 7c96776
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/plugin/netrwPlugin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ set cpo&vim
" surpress output of command; use bang for GUI applications

" set up redirection (avoids browser messages)
" by default, g:netrw_suppress_gx_mesg is true
if get(g:, ':netrw_suppress_gx_mesg', 1)
" by default if not set, g:netrw_suppress_gx_mesg is true
if get(g:, 'netrw_suppress_gx_mesg', 1)
if &srr =~# "%s"
let s:redir = printf(&srr, has("win32") ? "nul" : "/dev/null")
else
Expand Down Expand Up @@ -96,7 +96,7 @@ if exists(':Launch') == 2
elseif executable('open')
let s:cmd = 'open'
else
s:cmd = ''
let s:cmd = ''
endif
function s:Open(cmd, file)
if empty(a:cmd) && !exists('g:netrw_browsex_viewer')
Expand Down

0 comments on commit 7c96776

Please sign in to comment.