diff options
Diffstat (limited to 'data/vim/patches/8.1.0242')
-rw-r--r-- | data/vim/patches/8.1.0242 | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/data/vim/patches/8.1.0242 b/data/vim/patches/8.1.0242 deleted file mode 100644 index 2f8d1cc7c..000000000 --- a/data/vim/patches/8.1.0242 +++ /dev/null @@ -1,63 +0,0 @@ -To: vim_dev@googlegroups.com -Subject: Patch 8.1.0242 -Fcc: outbox -From: Bram Moolenaar <Bram@moolenaar.net> -Mime-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit ------------- - -Patch 8.1.0242 -Problem: Insert mode completion may use an invalid buffer pointer. -Solution: Check for ins_buf to be valid. (closes #3290) -Files: src/edit.c - - -*** ../vim-8.1.0241/src/edit.c 2018-08-01 19:05:59.282223206 +0200 ---- src/edit.c 2018-08-07 14:53:05.865949346 +0200 -*************** -*** 4419,4428 **** - ? (char_u *)"." : curbuf->b_p_cpt; - last_match_pos = first_match_pos = *ini; - } - - compl_old_match = compl_curr_match; /* remember the last current match */ - pos = (compl_direction == FORWARD) ? &last_match_pos : &first_match_pos; -! /* For ^N/^P loop over all the flags/windows/buffers in 'complete' */ - for (;;) - { - found_new_match = FAIL; ---- 4419,4433 ---- - ? (char_u *)"." : curbuf->b_p_cpt; - last_match_pos = first_match_pos = *ini; - } -+ else if (ins_buf != curbuf && !buf_valid(ins_buf)) -+ ins_buf = curbuf; // In case the buffer was wiped out. - - compl_old_match = compl_curr_match; /* remember the last current match */ - pos = (compl_direction == FORWARD) ? &last_match_pos : &first_match_pos; -! -! /* -! * For ^N/^P loop over all the flags/windows/buffers in 'complete'. -! */ - for (;;) - { - found_new_match = FAIL; -*** ../vim-8.1.0241/src/version.c 2018-08-07 13:14:05.644508497 +0200 ---- src/version.c 2018-08-07 14:54:09.961578224 +0200 -*************** -*** 796,797 **** ---- 796,799 ---- - { /* Add new patch number below this line */ -+ /**/ -+ 242, - /**/ - --- -Did you ever stop to think... and forget to start again? - -- Steven Wright - - /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ -/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ -\\\ an exciting new programming language -- http://www.Zimbu.org /// - \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |