Commit f0f63a82 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Changed awkward messages for no help and no wrap mode toggles

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@199 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 33 additions and 14 deletions
+33 -14
...@@ -14,11 +14,18 @@ CVS Code ...@@ -14,11 +14,18 @@ CVS Code
functions. Thanks Mini editor team :-> functions. Thanks Mini editor team :->
- Changed last_search and last_replace vars to statically - Changed last_search and last_replace vars to statically
allocated (hence nulled) and moved to search.c (Matt Kraai). 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: - nano.c:
do_mouse() do_mouse()
- Patch for handling lines w/tabs and mouse better (Ben Roberts). - Patch for handling lines w/tabs and mouse better (Ben Roberts).
do_wrap() do_wrap()
- Made wrapping code less ambitious. - Made wrapping code less ambitious.
do_toggle()
- Added checks for no help and no wrap mode, and print opposite
enable/disable message.
- winio.c: - winio.c:
total_refresh() total_refresh()
- Added edit_refresh() call to actually update the screen if messy. - Added edit_refresh() call to actually update the screen if messy.
......
...@@ -118,12 +118,12 @@ void toggle_init(void) ...@@ -118,12 +118,12 @@ void toggle_init(void)
toggle_const_msg = _("Constant cursor position"); toggle_const_msg = _("Constant cursor position");
toggle_autoindent_msg = _("Autoindent"); toggle_autoindent_msg = _("Autoindent");
toggle_suspend_msg = _("Suspend"); toggle_suspend_msg = _("Suspend");
toggle_nohelp_msg = _("No help mode"); toggle_nohelp_msg = _("Help mode");
toggle_picomode_msg = _("Pico messages"); toggle_picomode_msg = _("Pico messages");
toggle_mouse_msg = _("Mouse support"); toggle_mouse_msg = _("Mouse support");
toggle_cuttoend_msg = _("Cut to end"); toggle_cuttoend_msg = _("Cut to end");
toggle_regexp_msg = _("Regular expressions"); 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, toggle_init_one(&toggles[0], TOGGLE_CONST_KEY, toggle_const_msg,
CONSTUPDATE); CONSTUPDATE);
......
...@@ -1595,11 +1595,23 @@ void help_init(void) ...@@ -1595,11 +1595,23 @@ void help_init(void)
void do_toggle(int which) void do_toggle(int which)
{ {
#ifndef NANO_SMALL #ifndef NANO_SMALL
char *enabled = "enabled";
char *disabled = "disabled";
if (ISSET(toggles[which].flag)) { 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); UNSET(toggles[which].flag);
} else { } 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); SET(toggles[which].flag);
} }
switch (toggles[which].val) { switch (toggles[which].val) {
......
...@@ -31,12 +31,12 @@ const struct _msg_ent _msg_tbl[] = { ...@@ -31,12 +31,12 @@ const struct _msg_ent _msg_tbl[] = {
{"Constant cursor position", 22}, {"Constant cursor position", 22},
{"Autoindent", 23}, {"Autoindent", 23},
{"Suspend", 24}, {"Suspend", 24},
{"No help mode", 25}, {"Help mode", 25},
{"Pico messages", 26}, {"Pico messages", 26},
{"Mouse support", 27}, {"Mouse support", 27},
{"Cut to end", 28}, {"Cut to end", 28},
{"Regular expressions", 29}, {"Regular expressions", 29},
{"No auto wrap", 30}, {"Auto wrap", 30},
{"Invoke the help menu", 31}, {"Invoke the help menu", 31},
{"Write the current file to disk", 32}, {"Write the current file to disk", 32},
{"Exit from nano", 33}, {"Exit from nano", 33},
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -120,7 +120,7 @@ msgid "Suspend" ...@@ -120,7 +120,7 @@ msgid "Suspend"
msgstr "" msgstr ""
#: global.c:121 #: global.c:121
msgid "No help mode" msgid "Help mode"
msgstr "" msgstr ""
#: global.c:122 #: global.c:122
...@@ -140,7 +140,7 @@ msgid "Regular expressions" ...@@ -140,7 +140,7 @@ msgid "Regular expressions"
msgstr "" msgstr ""
#: global.c:126 #: global.c:126
msgid "No auto wrap" msgid "Auto wrap"
msgstr "" msgstr ""
#: global.c:166 #: global.c:166
...@@ -675,24 +675,24 @@ msgstr "" ...@@ -675,24 +675,24 @@ msgstr ""
msgid "Cannot move bottom win" msgid "Cannot move bottom win"
msgstr "" msgstr ""
#: nano.c:1806 #: nano.c:1818
msgid "Main: set up windows\n" msgid "Main: set up windows\n"
msgstr "" msgstr ""
#: nano.c:1821 #: nano.c:1833
msgid "Main: bottom win\n" msgid "Main: bottom win\n"
msgstr "" msgstr ""
#: nano.c:1827 #: nano.c:1839
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "" msgstr ""
#: nano.c:1895 #: nano.c:1907
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "" msgstr ""
#: nano.c:1921 #: nano.c:1933
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "" msgstr ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment