Mercurial > vim
comparison src/term.c @ 31263:d8e7d725a666 v9.0.0965
patch 9.0.0965: using one window for executing autocommands is insufficient
Commit: https://github.com/vim/vim/commit/e76062c078debed0df818f70e4db14ad7a7cb53a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 28 18:51:43 2022 +0000
patch 9.0.0965: using one window for executing autocommands is insufficient
Problem: Using one window for executing autocommands is insufficient.
Solution: Use up to five windows for executing autocommands.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 28 Nov 2022 20:00:05 +0100 |
parents | ee50174810ac |
children | 0851a1a22a38 |
comparison
equal
deleted
inserted
replaced
31262:7f766b7e17d5 | 31263:d8e7d725a666 |
---|---|
2230 FOR_ALL_BUFFERS(buf) | 2230 FOR_ALL_BUFFERS(buf) |
2231 { | 2231 { |
2232 if (curbuf->b_ml.ml_mfp != NULL) | 2232 if (curbuf->b_ml.ml_mfp != NULL) |
2233 { | 2233 { |
2234 aucmd_prepbuf(&aco, buf); | 2234 aucmd_prepbuf(&aco, buf); |
2235 apply_autocmds(EVENT_TERMCHANGED, NULL, NULL, FALSE, | 2235 if (curbuf == buf) |
2236 { | |
2237 apply_autocmds(EVENT_TERMCHANGED, NULL, NULL, FALSE, | |
2236 curbuf); | 2238 curbuf); |
2237 // restore curwin/curbuf and a few other things | 2239 // restore curwin/curbuf and a few other things |
2238 aucmd_restbuf(&aco); | 2240 aucmd_restbuf(&aco); |
2241 } | |
2239 } | 2242 } |
2240 } | 2243 } |
2241 } | 2244 } |
2242 } | 2245 } |
2243 | 2246 |