netrw v165 seems to ignore sort sequence

2019-08-07 Thread François Ingelrest
Hi all,

I recently updated my vim to v8.1.1824, including netrw which is now v165.

When sorting by name, directories and files are now mixed up among
other things. I'm not sure whether this is a bug or if I didn't get
how to use g:netrw_sort_sequence, but this variable seems to be
ignored which could be the cause of the initial issue. I've tried
various sequences including the default one, but the file listing
seems unaffected.

Thanks!

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/CALs0%3D_6OQ0BUx0bwbgPVKgPGka0o4m7OuDz%2BHN%3DVo96YSPR4og%40mail.gmail.com.


Re: [vim/vim] Help wanted: netrw maintenance (#4663)

2019-08-07 Thread Bram Moolenaar


> Recently netrw v165 was included, but it causes a new issue: #4738.

Charles did respond and made v165 available, but he hasn't managed to
verify that problems on MS-Windows and Mac are solved.  #4738 is a Mac
specific problem, Charles will need others to look into that.

So Charles continues to be the maintainer, since nobody else volunteered
and he did respond.  But he could use help from others.

-- 
`The Guide says there is an art to flying,' said Ford, `or at least a
knack. The knack lies in learning how to throw yourself at the ground
and miss.' He smiled weakly.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/201908071055.x77Ati8m008493%40masaka.moolenaar.net.


Re: [vim/vim] Support for "" in mappings (Neovim patch) (#4784)

2019-08-07 Thread 'Andy Wokula' via vim_dev

Am 07.08.2019 um 14:04 schrieb Daniel Hahler (Vim Github Repository):

Neovim has a nice feature where you can use || in a mapping to
stay in the current mode (a better alternative to |vnoremap x
:???|, where you then have to handle re-entering visual mode
etc).

(in the case at hand it allows for using |search| in a mapping for
both normal and visual mode, tpope/vim-unimpaired#187
)

The original patch was done in neovim/neovim#4419
 by @bfredl
.

Having it in Vim also would make life easier for plugin authors (in
general due to its usefulness, and with regard to Neovim
compatibility)


For older Vims, see
https://github.com/vim-scripts/motpat.vim/blob/master/autoload/gvmap.vim

--
Andy

--
--
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/5D4AECC5.20001%40yahoo.de.


Patch 8.1.1825

2019-08-07 Thread Bram Moolenaar


Patch 8.1.1825
Problem:Allocating more memory than needed for extended structs.
Solution:   Use offsetof() instead of sizeof(). (Dominique Pelle,
closes #4785)
Files:  src/dict.c


*** ../vim-8.1.1824/src/dict.c  2019-07-27 23:12:08.667924110 +0200
--- src/dict.c  2019-08-07 21:34:26.138992400 +0200
***
*** 210,216 
  {
  dictitem_T *di;
  
! di = alloc(sizeof(dictitem_T) + STRLEN(key));
  if (di != NULL)
  {
STRCPY(di->di_key, key);
--- 210,216 
  {
  dictitem_T *di;
  
! di = alloc(offsetof(dictitem_T, di_key) + STRLEN(key) + 1);
  if (di != NULL)
  {
STRCPY(di->di_key, key);
***
*** 228,234 
  {
  dictitem_T *di;
  
! di = alloc(sizeof(dictitem_T) + STRLEN(org->di_key));
  if (di != NULL)
  {
STRCPY(di->di_key, org->di_key);
--- 228,234 
  {
  dictitem_T *di;
  
! di = alloc(offsetof(dictitem_T, di_key) + STRLEN(org->di_key) + 1);
  if (di != NULL)
  {
STRCPY(di->di_key, org->di_key);
*** ../vim-8.1.1824/src/version.c   2019-08-06 22:47:57.112635782 +0200
--- src/version.c   2019-08-07 21:36:19.770401825 +0200
***
*** 771,772 
--- 771,774 
  {   /* Add new patch number below this line */
+ /**/
+ 1825,
  /**/

-- 
The technology involved in making anything invisible is so infinitely
complex that nine hundred and ninety-nine billion, nine hundred and
ninety-nine million, nine hundred and ninety-nine thousand, nine hundred
and ninety-nine times out of a trillion it is much simpler and more
effective just to take the thing away and do without it.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/201908071943.x77Jh2Dd028757%40masaka.moolenaar.net.


Patch 8.1.1826

2019-08-07 Thread Bram Moolenaar


Patch 8.1.1826
Problem:Tests use hand coded feature and option checks.
Solution:   Use the commands from check.vim in more tests.
Files:  src/testdir/check.vim, src/testdir/shared.vim,
src/testdir/test_autochdir.vim, src/testdir/test_autocmd.vim,
src/testdir/test_balloon.vim, src/testdir/test_breakindent.vim,
src/testdir/test_bufline.vim, src/testdir/test_cdo.vim,
src/testdir/test_channel.vim, src/testdir/test_clientserver.vim,
src/testdir/test_conceal.vim, src/testdir/test_cscope.vim,
src/testdir/test_debugger.vim, src/testdir/test_filechanged.vim,
src/testdir/test_fold.vim, src/testdir/test_functions.vim,
src/testdir/test_gui.vim, src/testdir/test_gui_init.vim,
src/testdir/test_highlight.vim, src/testdir/test_mapping.vim,
src/testdir/test_match.vim, src/testdir/test_memory_usage.vim,
src/testdir/test_options.vim, src/testdir/test_paste.vim,
src/testdir/test_popup.vim, src/testdir/test_search.vim,
src/testdir/test_signals.vim, src/testdir/test_startup.vim,
src/testdir/test_syntax.vim, src/testdir/test_termcodes.vim,
src/testdir/test_terminal.vim, src/testdir/test_timers.vim,
src/testdir/test_vimscript.vim


*** ../vim-8.1.1825/src/testdir/check.vim   2019-08-03 22:55:28.871027263 
+0200
--- src/testdir/check.vim   2019-08-07 22:37:04.725596648 +0200
***
*** 22,27 
--- 22,43 
endif
  endfunc
  
+ " Command to check for the presence of an Ex command
+ command -nargs=1 CheckCommand call CheckCommand()
+ func CheckCommand(name)
+   if !exists(':' .. a:name)
+ throw 'Skipped: ' .. a:name .. ' command not supported'
+   endif
+ endfunc
+ 
+ " Command to check for the presence of a shell command
+ command -nargs=1 CheckExecutable call CheckExecutable()
+ func CheckExecutable(name)
+   if !executable(a:name)
+ throw 'Skipped: ' .. a:name .. ' program not executable'
+   endif
+ endfunc
+ 
  " Command to check for running on MS-Windows
  command CheckMSWindows call CheckMSWindows()
  func CheckMSWindows()
***
*** 30,35 
--- 46,59 
endif
  endfunc
  
+ " Command to check for NOT running on MS-Windows
+ command CheckNotMSWindows call CheckNotMSWindows()
+ func CheckNotMSWindows()
+   if has('win32')
+ throw 'Skipped: does not work on MS-Windows'
+   endif
+ endfunc
+ 
  " Command to check for running on Unix
  command CheckUnix call CheckUnix()
  func CheckUnix()
***
*** 54,56 
--- 78,104 
  throw 'Skipped: cannot run Vim in a terminal window'
endif
  endfunc
+ 
+ " Command to check that we can run the GUI
+ command CheckCanRunGui call CheckCanRunGui()
+ func CheckCanRunGui()
+   if !has('gui') || ($DISPLAY == "" && !has('gui_running'))
+ throw 'Skipped: cannot run start the GUI'
+   endif
+ endfunc
+ 
+ " Command to check that we are using the GUI
+ command CheckGui call CheckGui()
+ func CheckGui()
+   if !has('gui_running')
+ throw 'Skipped: only works in the GUI'
+   endif
+ endfunc
+ 
+ " Command to check that not currently using the GUI
+ command CheckNotGui call CheckNotGui()
+ func CheckNotGui()
+   if has('gui_running')
+ throw 'Skipped: only works in the terminal'
+   endif
+ endfunc
*** ../vim-8.1.1825/src/testdir/shared.vim  2019-07-14 21:54:23.279146889 
+0200
--- src/testdir/shared.vim  2019-08-07 22:36:05.697007632 +0200
***
*** 323,332 
return 1
  endfunc
  
- func CanRunGui()
-   return has('gui') && ($DISPLAY != "" || has('gui_running'))
- endfunc
- 
  func WorkingClipboard()
if !has('clipboard')
  return 0
--- 323,328 
*** ../vim-8.1.1825/src/testdir/test_autochdir.vim  2019-06-06 
13:37:56.967789508 +0200
--- src/testdir/test_autochdir.vim  2019-08-07 21:53:42.816935230 +0200
***
*** 1,8 
  " Test 'autochdir' behavior
  
! if !exists("+autochdir")
!   throw 'Skipped: autochdir feature missing'
! endif
  
  func Test_set_filename()
let cwd = getcwd()
--- 1,7 
  " Test 'autochdir' behavior
  
! source check.vim
! CheckOption autochdir
  
  func Test_set_filename()
let cwd = getcwd()
*** ../vim-8.1.1825/src/testdir/test_autocmd.vim2019-06-15 
18:40:11.040368512 +0200
--- src/testdir/test_autocmd.vim2019-08-07 21:58:47.911138474 +0200
***
*** 1,6 
--- 1,7 
  " Tests for autocommands
  
  source shared.vim
+ source check.vim
  
  func s:cleanup_buffers() abort
for bnr in range(1, bufnr('$'))
***
*** 1861,1869 
  endfunc
  
  func Test_Changed_FirstTime()
!   if !has('terminal') || has('gui_running')
! return
!   endif
" Prepare file for TextChanged event.
call writefile([''], 'Xchanged.txt')
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], 
{'term_rows': 3})
--- 1862,1870 
  endfunc
  
  func Test_Changed_FirstTime()
!   Chec