runtime(netrw): fix syntax error in netrwPlugin.vim

Commit: 
https://github.com/vim/vim/commit/7c96776729a671b7c5f6be81bc29d860920ea1c1
Author: Christian Brabandt <c...@256bit.org>
Date:   Mon Oct 28 07:03:24 2024 +0100

    runtime(netrw): fix syntax error in netrwPlugin.vim
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/plugin/netrwPlugin.vim b/runtime/plugin/netrwPlugin.vim
index 59fb7e727..3cf9082aa 100644
--- a/runtime/plugin/netrwPlugin.vim
+++ b/runtime/plugin/netrwPlugin.vim
@@ -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')

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1t5J1r-00CqPL-6X%40256bit.org.

Raspunde prin e-mail lui