[vim/vim] netrw rename operation error `E121: Undefined variable: reset_ssl` (Issue #20710)

2 views
Skip to first unread message

Doruk Özer

unread,
2:16 AM (3 hours ago) 2:16 AM
to vim/vim, Subscribed
dorukozerr created an issue (vim/vim#20710)

Steps to reproduce

I started getting the shared error when renaming operation invoked in netrw, after recent update

intruduced with commit 48474e6 I believe

Related diff block

+            if exists('+shellslash') && !&ssl
+                let reset_ssl = 1
+                set ssl
+            endif
+            " Consistently use / as directory separator
             let oldname= netrw#fs#ComposePath(a:path,curword)
+            if reset_ssl
+                set nossl
+            endif

I'm not confident in correctness of this fix but adding let reset_ssl = 0 before if checks seemed correct. I get little bit excited for opening a PR for this and wrote things very poorly.

PR #20698

Expected behaviour

echo's the error block I shared but rename operation can be continued

Version of Vim

9.2.0750

Environment

os: macOS 26.5.1 arm64
terminal: wezterm 20240203-110809-5046fc22
$TERM: tmux-256color
shell: zsh 5.9.1 (arm-apple-darwin25.4.0)

Logs and stack traces

Error detected while processing function <SNR>112_NetrwLocalRename:
line   77:
E121: Undefined variable: reset_ssl
Moving /Users/suqoi/.vim/autoload/netrw.vim to : /Users/suqoi/.vim/autoload/netrw.vim


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20710@github.com>

Reply all
Reply to author
Forward
0 new messages