]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): fix filetype detection for remote editing files
authorChristian Brabandt <cb@256bit.org>
Sun, 17 Sep 2023 16:52:56 +0000 (18:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 17 Sep 2023 16:52:56 +0000 (18:52 +0200)
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>
runtime/autoload/netrw.vim

index 14b1ab20d4ada34d68e8599d266042500a47b038..9548b493752b215e755fb3482dfdab8e95058b59 100644 (file)
@@ -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-=/