summaryrefslogtreecommitdiffstats
path: root/src/clipboard.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-06 13:41:07 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-06 13:41:07 +0100
commite275ba4fc994474155fbafe8b87a6d3b477456ba (patch)
tree6d474169be70959a09da92686e061901455691ba /src/clipboard.c
parente2982d691186c8a9b16ecc8d831d2472088c8ed8 (diff)
patch 8.2.3484: crash when going through spell suggestionsv8.2.3484
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)
Diffstat (limited to 'src/clipboard.c')
-rw-r--r--src/clipboard.c3
1 files changed, 2 insertions, 1 deletions
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();