0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0579: using freed memory when 'tagfunc' wipes out buffer

Problem:    Using freed memory when 'tagfunc' wipes out buffer that holds
            'complete'.
Solution:   Make a copy of the option.  Make sure cursor position is valid.
This commit is contained in:
Bram Moolenaar
2022-09-24 19:20:30 +01:00
parent 865bf2ed30
commit 0ff01835a4
4 changed files with 52 additions and 11 deletions

View File

@@ -683,6 +683,7 @@ cursor_valid(void)
void
validate_cursor(void)
{
check_cursor();
check_cursor_moved(curwin);
if ((curwin->w_valid & (VALID_WCOL|VALID_WROW)) != (VALID_WCOL|VALID_WROW))
curs_columns(TRUE);