Mercurial > vim
comparison runtime/autoload/netrw.vim @ 30875:3295247d97a5
Update runtime files
Commit: https://github.com/vim/vim/commit/3c053a1a5ad2a3c924929e11f2b9af20a8b901e2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 16 13:11:12 2022 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Oct 2022 14:15:06 +0200 |
parents | 9c221ad9634a |
children | b2e8663e6dcc |
comparison
equal
deleted
inserted
replaced
30874:479022a91414 | 30875:3295247d97a5 |
---|---|
1789 " call Dfunc("s:NetrwOptionsRestore(vt<".a:vt.">) win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> winnr($)=".winnr("$")) | 1789 " call Dfunc("s:NetrwOptionsRestore(vt<".a:vt.">) win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> winnr($)=".winnr("$")) |
1790 " call Decho("(s:NetrwOptionsRestore) lines=".&lines) | 1790 " call Decho("(s:NetrwOptionsRestore) lines=".&lines) |
1791 " call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>")) | 1791 " call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>")) |
1792 if !exists("{a:vt}netrw_optionsave") | 1792 if !exists("{a:vt}netrw_optionsave") |
1793 " call Decho("case ".a:vt."netrw_optionsave : doesn't exist",'~'.expand("<slnum>")) | 1793 " call Decho("case ".a:vt."netrw_optionsave : doesn't exist",'~'.expand("<slnum>")) |
1794 " call Decho("..doing filetype detect anyway") | 1794 if !isdirectory(expand('%')) |
1795 filetype detect | 1795 " call Decho("..doing filetype detect anyway") |
1796 filetype detect | |
1797 endif | |
1796 " call Decho("..settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>")) | 1798 " call Decho("..settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>")) |
1797 " call Decho("..ro=".&l:ro." ma=".&l:ma." mod=".&l:mod." wrap=".&l:wrap." (filename<".expand("%")."> win#".winnr()." ft<".&ft.">)",'~'.expand("<slnum>")) | 1799 " call Decho("..ro=".&l:ro." ma=".&l:ma." mod=".&l:mod." wrap=".&l:wrap." (filename<".expand("%")."> win#".winnr()." ft<".&ft.">)",'~'.expand("<slnum>")) |
1798 " call Dret("s:NetrwOptionsRestore : ".a:vt."netrw_optionsave doesn't exist") | 1800 " call Dret("s:NetrwOptionsRestore : ".a:vt."netrw_optionsave doesn't exist") |
1799 return | 1801 return |
1800 endif | 1802 endif |
1902 " call Decho("ts=".&l:ts,'~'.expand("<slnum>")) | 1904 " call Decho("ts=".&l:ts,'~'.expand("<slnum>")) |
1903 " Moved the filetype detect here from NetrwGetFile() because remote files | 1905 " Moved the filetype detect here from NetrwGetFile() because remote files |
1904 " were having their filetype detect-generated settings overwritten by | 1906 " were having their filetype detect-generated settings overwritten by |
1905 " NetrwOptionRestore. | 1907 " NetrwOptionRestore. |
1906 if &ft != "netrw" | 1908 if &ft != "netrw" |
1907 " call Decho("before: filetype detect (ft=".&ft.")",'~'.expand("<slnum>")) | 1909 if !isdirectory(expand('%')) |
1908 filetype detect | 1910 " call Decho("before: filetype detect (ft=".&ft.")",'~'.expand("<slnum>")) |
1909 " call Decho("after : filetype detect (ft=".&ft.")",'~'.expand("<slnum>")) | 1911 filetype detect |
1912 " call Decho("after : filetype detect (ft=".&ft.")",'~'.expand("<slnum>")) | |
1913 endif | |
1910 endif | 1914 endif |
1911 " call Decho("(s:NetrwOptionsRestore) lines=".&lines) | 1915 " call Decho("(s:NetrwOptionsRestore) lines=".&lines) |
1912 " call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>")) | 1916 " call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>")) |
1913 " call Dret("s:NetrwOptionsRestore : tab#".tabpagenr()." win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> modified=".&modified." modifiable=".&modifiable." readonly=".&readonly) | 1917 " call Dret("s:NetrwOptionsRestore : tab#".tabpagenr()." win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> modified=".&modified." modifiable=".&modifiable." readonly=".&readonly) |
1914 endfun | 1918 endfun |