]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): fix syntax error in netrwPlugin.vim
authorChristian Brabandt <cb@256bit.org>
Mon, 28 Oct 2024 06:03:24 +0000 (07:03 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 28 Oct 2024 06:03:24 +0000 (07:03 +0100)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/plugin/netrwPlugin.vim

index 59fb7e727ee7437b994565328685ade1eafb626d..3cf9082aa6e5e8cc0a98b84e7b0f99f635a7abcc 100644 (file)
@@ -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
@@ -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')