spelling and typo fixes

Submitted for 3.7.0; all but one also apply to 3.6.3.

I rewrote the curses terminal-too-small message instead of just
fixing the spelling of "minumum".
This commit is contained in:
PatR
2019-12-11 12:35:45 -08:00
parent 850d37b47f
commit 8a57029503
12 changed files with 18 additions and 14 deletions

View File

@@ -211,8 +211,11 @@ curses_init_nhwindows(int *argcp UNUSED,
getmaxyx(base_term, term_rows, term_cols);
counting = FALSE;
curses_init_options();
if ((term_rows < 15) || (term_cols < 40)) {
panic("Terminal too small. Must be minumum 40 width and 15 height");
if (term_rows < 15 || term_cols < 40) {
panic("Terminal is too small; must have at least %s%s%s.",
(term_rows < 15) ? "15 rows" : "",
(term_rows < 15 && term_cols < 40) ? " and " : "",
(term_cols < 40) ? "40 columns" : "");
}
/* during line input, deletes the most recently typed character */
erase_char = erasechar(); /* <delete>/<rubout> or possibly <backspace> */

View File

@@ -504,7 +504,7 @@ curses_puts(winid wid, int attr, const char *text)
if (curses_is_menu(wid) || curses_is_text(wid)) {
if (!curses_menu_exists(wid)) {
impossible(
"curses_puts: Attempted write to nonexistant window %d!",
"curses_puts: Attempted write to nonexistent window %d!",
wid);
return;
}

View File

@@ -302,7 +302,7 @@ char c;
register struct WinDesc *cw = wins[WIN_MESSAGE];
if (cw == (struct WinDesc *) 0)
panic("Putsym window MESSAGE nonexistant");
panic("Putsym window MESSAGE nonexistent");
switch (c) {
case '\b':

View File

@@ -1057,7 +1057,7 @@ reset_role_filtering()
add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, "", MENU_UNSELECTED);
add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE,
"Uncceptable alignments", MENU_UNSELECTED);
"Unacceptable alignments", MENU_UNSELECTED);
setup_algnmenu(win, FALSE, ROLE_NONE, ROLE_NONE, ROLE_NONE);
end_menu(win, "Pick all that apply");