From: Christian Brabandt Date: Sun, 17 Sep 2023 16:52:56 +0000 (+0200) Subject: runtime(netrw): fix filetype detection for remote editing files X-Git-Tag: v9.0.1908~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8b86c937a419db69239a8bb879f0050be0f8e1d;p=thirdparty%2Fvim.git 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 --- diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim index 14b1ab20d4..9548b49375 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("")) " call Decho("..did_filetype()=".did_filetype()) - setl ft= +" setl ft= " call Decho("..initial filetype<".&ft."> for buf#".bufnr()."<".bufname().">") let iskkeep= &isk setl isk-=/