mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0750: crash when popup closed in callback
Problem: Crash when popup closed in callback. (Maxim Kim) Solution: In syntax_end_parsing() check that syn_block is valid.
This commit is contained in:
@@ -1542,10 +1542,12 @@ syn_stack_equal(synstate_T *sp)
|
||||
* lnum -> line below window
|
||||
*/
|
||||
void
|
||||
syntax_end_parsing(linenr_T lnum)
|
||||
syntax_end_parsing(win_T *wp, linenr_T lnum)
|
||||
{
|
||||
synstate_T *sp;
|
||||
|
||||
if (syn_block != wp->w_s)
|
||||
return; // not the right window
|
||||
sp = syn_stack_find_entry(lnum);
|
||||
if (sp != NULL && sp->sst_lnum < lnum)
|
||||
sp = sp->sst_next;
|
||||
|
Reference in New Issue
Block a user