mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -04:00
patch 8.2.3484: crash when going through spell suggestions
Problem: Crash when going through spell suggestions. Solution: Limit the text length for finding suggestions to the original length. Do not update buffers when exiting. (closes #8965)
This commit is contained in:
@@ -199,7 +199,8 @@ clip_lose_selection(Clipboard_T *cbd)
|
||||
|| get_real_state() == SELECTMODE)
|
||||
&& (cbd == &clip_star ?
|
||||
clip_isautosel_star() : clip_isautosel_plus())
|
||||
&& HL_ATTR(HLF_V) != HL_ATTR(HLF_VNC))
|
||||
&& HL_ATTR(HLF_V) != HL_ATTR(HLF_VNC)
|
||||
&& !exiting)
|
||||
{
|
||||
update_curbuf(INVERTED_ALL);
|
||||
setcursor();
|
||||
|
Reference in New Issue
Block a user