shortcut_init()
- Remove erroneous handling of the "Get Help" shortcut in the
file browser shortcut list. (DLR)
+- nano.h:
+ - Remove now-unneeded VERMSG #define. (DLR)
- prompt.c:
get_prompt_string()
- Redraw the prompt and set finished to FALSE when NANO_HELP_KEY
Shift-Insert, and Shift-Suspend as Begin, Delete, End, Home,
Insert, and Suspend, respectively, regardless of whether
--rebindkeypad is used. (DLR, found by David Benbennick)
+ titlebar()
+ - Use PACKAGE_STRING, as defined by autoconf, instead of VERMSG.
+ (DLR)
edit_redraw()
- If either current or old_current is offscreen, we're not on
the first page, and/or we're not on the same page as before,
#define getline ngetline
#endif
-#define VERMSG "GNU nano " VERSION
-
/* If we don't have regex support, turn the color support off, as it
* depends on the use of regexes. */
#ifndef HAVE_REGEX_H
{
int space = COLS;
/* The space we have available for display. */
- size_t verlen = strlenpt(VERMSG) + 1;
+ size_t verlen = strlenpt(PACKAGE_STRING) + 1;
/* The length of the version message in columns, plus one for
* padding. */
const char *prefix;
if (space >= 4) {
/* Add a space after the version message, and account for both
* it and the two spaces before it. */
- mvwaddnstr(topwin, 0, 2, VERMSG, actual_x(VERMSG, verlen));
+ mvwaddnstr(topwin, 0, 2, PACKAGE_STRING,
+ actual_x(PACKAGE_STRING, verlen));
verlen += 3;
/* Account for the full length of the version message. */