From 4a9c8589b23c58fcf4de766b588977a2159935cb Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Mon, 27 Nov 2000 22:59:40 +0000 Subject: [PATCH] Oops, do it in either case, whether we did unjustify or not git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@333 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- nano.c | 7 +++---- po/nano.pot | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/nano.c b/nano.c index 83d3f1e0..09beba0b 100644 --- a/nano.c +++ b/nano.c @@ -1820,11 +1820,8 @@ int do_justify(void) /* Now get a keystroke and see if it's unjustify, if not unget the keytroke and return */ - if ((kbinput = wgetch(edit)) != NANO_UNJUSTIFY_KEY) { + if ((kbinput = wgetch(edit)) != NANO_UNJUSTIFY_KEY) ungetch(kbinput); - shortcut_init(0); - display_main_list(); - } else { /* Else restore the justify we just did (ungrateful user!) */ if (tmptop->prev != NULL) @@ -1841,6 +1838,8 @@ int do_justify(void) free_filestruct(tmptop); blank_statusbar_refresh(); } + shortcut_init(0); + display_main_list(); free_filestruct(cutbuffer); cutbuffer = cutbak; diff --git a/po/nano.pot b/po/nano.pot index 30388215..9a16a7e2 100644 --- a/po/nano.pot +++ b/po/nano.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-11-27 17:57-0500\n" +"POT-Creation-Date: 2000-11-27 18:00-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -691,52 +691,52 @@ msgstr "" msgid "Can now UnJustify!" msgstr "" -#: nano.c:1914 +#: nano.c:1913 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1926 +#: nano.c:1925 msgid "enabled" msgstr "" -#: nano.c:1927 +#: nano.c:1926 msgid "disabled" msgstr "" -#: nano.c:2157 +#: nano.c:2156 msgid "Main: set up windows\n" msgstr "" -#: nano.c:2170 +#: nano.c:2169 msgid "Main: bottom win\n" msgstr "" -#: nano.c:2176 +#: nano.c:2175 msgid "Main: open file\n" msgstr "" -#: nano.c:2213 +#: nano.c:2212 #, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "" -#: nano.c:2235 +#: nano.c:2234 #, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "" -#: nano.c:2268 +#: nano.c:2267 #, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "" -#: nano.c:2316 +#: nano.c:2315 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "" -#: nano.c:2342 +#: nano.c:2341 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "" -- 2.39.5