speller: ensure that a Shift-selected region is retained

For both an integrated and an external spell check, fake the Shift key
being held so that (when the cursor is moved by a changed length of a
word) a Shift-selected region is not unexpectedly cancelled.

This fixes https://savannah.gnu.org/bugs/?56365.
master
Benno Schulenberg 2019-05-24 12:23:42 +02:00
parent 4cacb626a0
commit 137c4467ef
1 changed files with 2 additions and 1 deletions

View File

@ -2667,8 +2667,9 @@ void do_spell(void)
/* Restore the settings of the global flags. */
memcpy(flags, stash, sizeof(flags));
/* Ensure the help lines will be redrawn. */
/* Ensure the help lines will be redrawn and a selection is retained. */
currmenu = MMOST;
shift_held = TRUE;
if (result_msg != NULL) {
if (errno == 0)