0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

runtime(netrw): fix filetype detection for remote editing files

closes: #12990
closes: #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 <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2023-09-17 18:52:56 +02:00
parent e30d8e4ce0
commit d8b86c937a
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -2998,7 +2998,7 @@ fun! s:NetrwGetFile(readcmd, tfile, method)
" to process this detection correctly. " to process this detection correctly.
" call Decho("detect filetype of local version of remote file<".rfile.">",'~'.expand("<slnum>")) " call Decho("detect filetype of local version of remote file<".rfile.">",'~'.expand("<slnum>"))
" call Decho("..did_filetype()=".did_filetype()) " call Decho("..did_filetype()=".did_filetype())
setl ft= " setl ft=
" call Decho("..initial filetype<".&ft."> for buf#".bufnr()."<".bufname().">") " call Decho("..initial filetype<".&ft."> for buf#".bufnr()."<".bufname().">")
let iskkeep= &isk let iskkeep= &isk
setl isk-=/ setl isk-=/