From e275ba4fc994474155fbafe8b87a6d3b477456ba Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 6 Oct 2021 13:41:07 +0100 Subject: 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) --- src/clipboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/clipboard.c') diff --git a/src/clipboard.c b/src/clipboard.c index b1da99bcbe..c0c21aeb6d 100644 --- a/src/clipboard.c +++ b/src/clipboard.c @@ -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(); -- cgit v1.2.3