functions. Thanks Mini editor team :->
- Changed last_search and last_replace vars to statically
allocated (hence nulled) and moved to search.c (Matt Kraai).
+- global.c:
+ toggle_init()
+ - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
+ "Help mode". See the change to do_toggle() below.
- nano.c:
do_mouse()
- Patch for handling lines w/tabs and mouse better (Ben Roberts).
do_wrap()
- Made wrapping code less ambitious.
+ do_toggle()
+ - Added checks for no help and no wrap mode, and print opposite
+ enable/disable message.
- winio.c:
total_refresh()
- Added edit_refresh() call to actually update the screen if messy.
toggle_const_msg = _("Constant cursor position");
toggle_autoindent_msg = _("Autoindent");
toggle_suspend_msg = _("Suspend");
- toggle_nohelp_msg = _("No help mode");
+ toggle_nohelp_msg = _("Help mode");
toggle_picomode_msg = _("Pico messages");
toggle_mouse_msg = _("Mouse support");
toggle_cuttoend_msg = _("Cut to end");
toggle_regexp_msg = _("Regular expressions");
- toggle_wrap_msg = _("No auto wrap");
+ toggle_wrap_msg = _("Auto wrap");
toggle_init_one(&toggles[0], TOGGLE_CONST_KEY, toggle_const_msg,
CONSTUPDATE);
void do_toggle(int which)
{
#ifndef NANO_SMALL
+ char *enabled = "enabled";
+ char *disabled = "disabled";
+
+
if (ISSET(toggles[which].flag)) {
- statusbar("%s %s", toggles[which].desc, "disabled");
+ if (toggles[which].val == TOGGLE_NOHELP_KEY ||
+ toggles[which].val == TOGGLE_WRAP_KEY)
+ statusbar("%s %s", toggles[which].desc, enabled);
+ else
+ statusbar("%s %s", toggles[which].desc, disabled);
UNSET(toggles[which].flag);
} else {
- statusbar("%s %s", toggles[which].desc, "enabled");
+ if (toggles[which].val == TOGGLE_NOHELP_KEY ||
+ toggles[which].val == TOGGLE_WRAP_KEY)
+ statusbar("%s %s", toggles[which].desc, disabled);
+ else
+ statusbar("%s %s", toggles[which].desc, enabled);
SET(toggles[which].flag);
}
switch (toggles[which].val) {
{"Constant cursor position", 22},
{"Autoindent", 23},
{"Suspend", 24},
- {"No help mode", 25},
+ {"Help mode", 25},
{"Pico messages", 26},
{"Mouse support", 27},
{"Cut to end", 28},
{"Regular expressions", 29},
- {"No auto wrap", 30},
+ {"Auto wrap", 30},
{"Invoke the help menu", 31},
{"Write the current file to disk", 32},
{"Exit from nano", 33},
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-09-02 13:45-0400\n"
+"POT-Creation-Date: 2000-09-02 14:48-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
#: global.c:121
-msgid "No help mode"
+msgid "Help mode"
msgstr ""
#: global.c:122
msgstr ""
#: global.c:126
-msgid "No auto wrap"
+msgid "Auto wrap"
msgstr ""
#: global.c:166
msgid "Cannot move bottom win"
msgstr ""
-#: nano.c:1806
+#: nano.c:1818
msgid "Main: set up windows\n"
msgstr ""
-#: nano.c:1821
+#: nano.c:1833
msgid "Main: bottom win\n"
msgstr ""
-#: nano.c:1827
+#: nano.c:1839
msgid "Main: open file\n"
msgstr ""
-#: nano.c:1895
+#: nano.c:1907
#, c-format
msgid "I got Alt-[-%c! (%d)\n"
msgstr ""
-#: nano.c:1921
+#: nano.c:1933
#, c-format
msgid "I got Alt-%c! (%d)\n"
msgstr ""