On Di, 21 Aug 2018, Bram Moolenaar wrote:

> 
> Christian Brabandt wrote:
> 
> > On Di, 21 Aug 2018, Bram Moolenaar wrote:
> > 
> > > 
> > > Patch 8.1.0313
> > > Problem:    Information about a swap file is unavailable.
> > > Solution:   Add swapinfo(). (Enzo Ferber)
> > > Files:        runtime/doc/eval.txt, src/evalfunc.c, src/memline.c,
> > >             src/proto/memline.pro, src/testdir/test_swap.vim
> > 
> > Is this information valid when the SwapFileExists autocommand triggers?
> 
> It directly reads the swap file, thus it should always be valid.
> Only thing is that on MS-Windows an exclusive read could block it.

Ah, one needs to provide the swapfile name and not the file name being 
edited. Makes sense, thanks and seems to work after a quick test.

Best,
Christian
-- 
Avantgardisten:
  Leute, die nicht genau wissen, wo sie hinwollen, aber als erste da sind.

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui