aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/autocmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-01 12:16:37 +0800
committerGitHub <noreply@github.com>2023-11-01 12:16:37 +0800
commitd7359a87425dc38efda4f74bd580bae9946abe31 (patch)
treeb7537f7e65967d844c150e7ba2f3f7a885b1e012 /src/nvim/autocmd.c
parent4e6096a67fe9860994be38bcd155e7c47313205e (diff)
downloadrneovim-d7359a87425dc38efda4f74bd580bae9946abe31.tar.gz
rneovim-d7359a87425dc38efda4f74bd580bae9946abe31.tar.bz2
rneovim-d7359a87425dc38efda4f74bd580bae9946abe31.zip
fix(startup): trigger UIEnter for the correct channel (#25860)
Diffstat (limited to 'src/nvim/autocmd.c')
-rw-r--r--src/nvim/autocmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c
index 2537269c5c..bdb3983ab3 100644
--- a/src/nvim/autocmd.c
+++ b/src/nvim/autocmd.c
@@ -2570,6 +2570,9 @@ void do_autocmd_uienter(uint64_t chanid, bool attached)
{
static bool recursive = false;
+ if (starting == NO_SCREEN) {
+ return; // user config hasn't been sourced yet
+ }
if (recursive) {
return; // disallow recursion
}