Mercurial > vim
diff src/clipboard.c @ 25901:f48c435bd1df v8.2.3484
patch 8.2.3484: crash when going through spell suggestions
Commit: https://github.com/vim/vim/commit/e275ba4fc994474155fbafe8b87a6d3b477456ba
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 6 13:41:07 2021 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 06 Oct 2021 14:45:03 +0200 |
parents | 14b86681e6e6 |
children | fc859aea8cec |
line wrap: on
line diff
--- 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();