-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 27-Jun-2017 00:01 +0200, mseplowitz wrote:
> A recent patch seems to have changed the behavior of how my plugins > load. In particular, it looks like plugin files in > pack/*/start/*/plugin/*.vim are loaded twice. > > I'm fairly sure this is an effect of patch 8.0.0612 > (https://github.com/vim/vim/commit/ce876aaa9a250a5a0d0e34b3a2625e51cf9 bf5bb). > > [55 lines deleted] You're right, and thank you for the great and detailed analysis! You've clearly succeeded in making the fixing as easy as possible :-) That pack plugins are sourced twice is indeed a regression and an oversight from my previous patch. I've just submitted a pull request that corrects the problem (and adds a test): https://github.com/vim/vim/pull/1801 > If this behavior is works-as-designed and/or I should be looking > into making my plugin files resilient to being loaded a second > time, please let me know. Most plugins have a multiple-inclusion guard in the form if exists('g:loaded_pluginname') finish endif It's not required, but a good idea. Plugin reloads can happen for multiple reasons (not just bugs), for example duplicate :packadd commands, or having the same plugin installed twice under different pack paths. - -- regards, ingo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZUjOzAAoJEA7ziXlAzQ/v9wwH/RQw/KM7bEPaXtRnJbe1ckdI 0uYVGDRGDmJN0JbjTjm/VNwNARayO1SbmIKhOeDLlusPJ5S0QHkDWH6algsmQxd+ cqvuQj21KkStkiR/B0rhLzW+pbydMfc+B1dEs9IwRxkh+m9hB6ZHxU886qErhSr/ 2PGRxwKgY76SKdECcpFT1Qic3P2uUyQk/C+Uhvv4r8KHI/mVZeOH+q5iOvYwrtLv uwzTBm4cnNCm023QGr8fTEblKAziuVt4fDbNAu+yugzpiQ0LXzkUAtHrtCNutfn7 prZZxpt74I3Ba6TLhkCkALXzv75CsZb0hdtGioumzNL0j59INK+0Pw4llnGF9xI= =khY1 -----END PGP SIGNATURE----- -- -- 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. For more options, visit https://groups.google.com/d/optout.