Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
25900:b55afbf97a65 | 25901:f48c435bd1df |
---|---|
197 if (was_owned | 197 if (was_owned |
198 && (get_real_state() == VISUAL | 198 && (get_real_state() == VISUAL |
199 || get_real_state() == SELECTMODE) | 199 || get_real_state() == SELECTMODE) |
200 && (cbd == &clip_star ? | 200 && (cbd == &clip_star ? |
201 clip_isautosel_star() : clip_isautosel_plus()) | 201 clip_isautosel_star() : clip_isautosel_plus()) |
202 && HL_ATTR(HLF_V) != HL_ATTR(HLF_VNC)) | 202 && HL_ATTR(HLF_V) != HL_ATTR(HLF_VNC) |
203 && !exiting) | |
203 { | 204 { |
204 update_curbuf(INVERTED_ALL); | 205 update_curbuf(INVERTED_ALL); |
205 setcursor(); | 206 setcursor(); |
206 cursor_on(); | 207 cursor_on(); |
207 out_flush_cursor(TRUE, FALSE); | 208 out_flush_cursor(TRUE, FALSE); |