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.
Этот коммит содержится в:
родитель
4cacb626a0
Коммит
137c4467ef
@ -2667,8 +2667,9 @@ void do_spell(void)
|
|||||||
/* Restore the settings of the global flags. */
|
/* Restore the settings of the global flags. */
|
||||||
memcpy(flags, stash, sizeof(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;
|
currmenu = MMOST;
|
||||||
|
shift_held = TRUE;
|
||||||
|
|
||||||
if (result_msg != NULL) {
|
if (result_msg != NULL) {
|
||||||
if (errno == 0)
|
if (errno == 0)
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user