Mercurial > vim
comparison src/structs.h @ 21206:caab594592cc v8.2.1154
patch 8.2.1154: Vim9: crash when using imported function
Commit: https://github.com/vim/vim/commit/c620c055ce8505596a7208ba696a32b8a3be4f4b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 8 15:16:19 2020 +0200
patch 8.2.1154: Vim9: crash when using imported function
Problem: Vim9: crash when using imported function.
Solution: Check for a function type. Set the script context when calling a
function. (closes #6412)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jul 2020 15:30:04 +0200 |
parents | 111f877e63d9 |
children | 09377fd59b2e |
comparison
equal
deleted
inserted
replaced
21205:d7f16d42548f | 21206:caab594592cc |
---|---|
1903 ufunc_T *ufunc; // function info | 1903 ufunc_T *ufunc; // function info |
1904 #endif | 1904 #endif |
1905 AutoPatCmd *aucmd; // autocommand info | 1905 AutoPatCmd *aucmd; // autocommand info |
1906 except_T *except; // exception info | 1906 except_T *except; // exception info |
1907 } es_info; | 1907 } es_info; |
1908 #if defined(FEAT_EVAL) | |
1909 scid_T es_save_sid; // saved sc_sid when calling function | |
1910 #endif | |
1908 } estack_T; | 1911 } estack_T; |
1909 | 1912 |
1910 // Information returned by get_tty_info(). | 1913 // Information returned by get_tty_info(). |
1911 typedef struct { | 1914 typedef struct { |
1912 int backspace; // what the Backspace key produces | 1915 int backspace; // what the Backspace key produces |