diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-14 17:04:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-14 17:04:09 +0100 |
commit | 0abd6cf62d65180dc2c40d67cd95f13b0691f7ea (patch) | |
tree | 8abf50c2a29bdbbf715be0960ff80b8592644cf3 /src/drawscreen.c | |
parent | 975a665d4811649a51e2c6a97a6ce096290d87ae (diff) | |
download | vim-git-0abd6cf62d65180dc2c40d67cd95f13b0691f7ea.tar.gz |
patch 9.0.0750: crash when popup closed in callbackv9.0.0750
Problem: Crash when popup closed in callback. (Maxim Kim)
Solution: In syntax_end_parsing() check that syn_block is valid.
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index d55c2eaec..5a23d54fd 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -2486,7 +2486,7 @@ win_update(win_T *wp) // Let the syntax stuff know we skipped a few lines. if (syntax_last_parsed != 0 && syntax_last_parsed + 1 < lnum && syntax_present(wp)) - syntax_end_parsing(syntax_last_parsed + 1); + syntax_end_parsing(wp, syntax_last_parsed + 1); #endif // Display one line. @@ -2601,7 +2601,7 @@ win_update(win_T *wp) #ifdef FEAT_SYN_HL // Let the syntax stuff know we stop parsing here. if (syntax_last_parsed != 0 && syntax_present(wp)) - syntax_end_parsing(syntax_last_parsed + 1); + syntax_end_parsing(wp, syntax_last_parsed + 1); #endif // If we didn't hit the end of the file, and we didn't finish the last |