> I haven't managed to build Vim from source with if_pyth, but I think this is 
> related to these lines in `aucmd_prepbuf()`:
> ```c
>     if (win == NULL && aucmd_win_used)
>       // Strange recursive autocommand, fall back to using the current
>       // window.  Expect a few side effects...
>       win = curwin;
> ```

Yes, I know that code isn't the right solution, and was thinking of the
need for more than one autocommand window.  Now that you provide a repro
case I can look into implementing that.

-- 
"The question of whether computers can think is just like the question
of whether submarines can swim."      -- Edsger W. Dijkstra

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221128111911.B87C61C0A61%40moolenaar.net.

Raspunde prin e-mail lui