runtime(netrw): fix filetype detection for remote editing files
Commit:
https://github.com/vim/vim/commit/d8b86c937a419db69239a8bb879f0050be0f8e1d
Author: Christian Brabandt <[email protected]>
Date: Sun Sep 17 18:52:56 2023 +0200
runtime(netrw): fix filetype detection for remote editing files
closes: https://github.com/vim/vim/issues/12990
closes: https://github.com/vim/vim/issues/12992
this partially reverses commit 71badf9 by commenting out the line that
intentionally sets the filetype to an empty string.
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index 14b1ab20d..9548b4937 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -2998,7 +2998,7 @@ fun! s:NetrwGetFile(readcmd, tfile, method)
" to process this detection correctly.
" call Decho("detect filetype of local version of remote
file<".rfile.">",'~'.expand("<slnum>"))
" call Decho("..did_filetype()=".did_filetype())
- setl ft=
+" setl ft=
" call Decho("..initial filetype<".&ft."> for
buf#".bufnr()."<".bufname().">")
let iskkeep= &isk
setl isk-=/
--
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qhv7v-00GjI4-Ri%40256bit.org.