1
1

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.
Этот коммит содержится в:
Benno Schulenberg 2019-05-24 12:23:42 +02:00
родитель 4cacb626a0
Коммит 137c4467ef

Просмотреть файл

@ -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)