feedback: don't clear off possible error messages after a spell check
If functions deeper down would put up some message on the status bar, it should not be cleared. The chance that messages from a spell-check program stay onscreen is minute: the edit window is fully refreshed, the status bar is fully drawn, and the help lines (if there are any) are redrawn. Only the title bar is not refreshed, but the chance that an error message has spilled onto the top row... And anyway, the spell checker should not print any error messages at all.
Этот коммит содержится в:
родитель
d7555d071f
Коммит
12bf3bfce4
@ -2677,9 +2677,8 @@ 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));
|
||||||
|
|
||||||
/* If the spell-checker printed any error messages onscreen, make
|
/* Ensure the help lines will be redrawn. */
|
||||||
* sure that they're cleared off. */
|
currmenu = MMOST;
|
||||||
total_refresh();
|
|
||||||
|
|
||||||
if (result_msg != NULL) {
|
if (result_msg != NULL) {
|
||||||
if (errno == 0)
|
if (errno == 0)
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user