runtime(netrw): Use correct "=~#" for the netrw_sizestyle='H' option
Commit: https://github.com/vim/vim/commit/c849b17e192ca152573ea0c99b36755dc2f3ffb3 Author: veotos <veo...@users.noreply.github.com> Date: Thu Aug 7 15:48:11 2025 +0200 runtime(netrw): Use correct "=~#" for the netrw_sizestyle='H' option Correct expression syntax to match case in if and if-else clauses. related: #8535 closes: #17901 Signed-off-by: veotos <veo...@users.noreply.github.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim index 50725e977..fd0b79115 100644 --- a/runtime/pack/dist/opt/netrw/autoload/netrw.vim +++ b/runtime/pack/dist/opt/netrw/autoload/netrw.vim @@ -1,6 +1,8 @@ " Creator: Charles E Campbell " Previous Maintainer: Luca Saccarola <github.e4...@aleeas.com> " Maintainer: This runtime file is looking for a new maintainer. +" Last Change: +" 2025 Aug 07 by Vim Project (use correct "=~#" for netrw_stylesize option #17901) " Copyright: Copyright (C) 2016 Charles E. Campbell {{{1 " Permission is hereby granted to use and distribute this code, " with or without modifications, provided that this copyright @@ -9225,7 +9227,7 @@ endfunction " 1000 -> 1K, 1000000 -> 1M, 1000000000 -> 1G function s:NetrwHumanReadable(sz) - if g:netrw_sizestyle == 'h' + if g:netrw_sizestyle ==# 'h' if a:sz >= 1000000000 let sz = printf("%.1f",a:sz/1000000000.0)."g" elseif a:sz >= 10000000 @@ -9240,7 +9242,7 @@ function s:NetrwHumanReadable(sz) let sz= a:sz endif - elseif g:netrw_sizestyle == 'H' + elseif g:netrw_sizestyle ==# 'H' if a:sz >= 1073741824 let sz = printf("%.1f",a:sz/1073741824.0)."G" elseif a:sz >= 10485760 -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uk1A6-000XH5-RF%40256bit.org.