commit 137c4467ef86fd383b982727fb9b355405f84556
parent 4cacb626a0210c5a8b26ebe90caa1e3f27e80789
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 24 May 2019 12:23:42 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/text.c b/src/text.c
@@ -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)