From: Chris Allegretta Date: Mon, 27 Nov 2000 02:50:49 +0000 (+0000) Subject: Fix for justift at top of file X-Git-Tag: v0.9.22~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d022eace153b5a0f9c9a98b7dc4285f6b4968ff6;p=nano.git Fix for justift at top of file git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@331 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/nano.c b/nano.c index 315d8f98..bd0ab90c 100644 --- a/nano.c +++ b/nano.c @@ -1823,10 +1823,15 @@ int do_justify(void) /* Else restore the justify we just did (ungrateful user!) */ if (tmptop->prev != NULL) tmptop->prev->next = tmpbot->next; + else + fileage = current; tmpbot->next->prev = tmptop->prev; current = tmpbot->next; tmpbot->next = NULL; do_uncut_text(); + if (tmptop->prev == NULL) + edit_refresh(); + free_filestruct(tmptop); blank_statusbar_refresh(); } diff --git a/po/nano.pot b/po/nano.pot index 056d3442..ca382c1e 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-26 19:24-0500\n" +"POT-Creation-Date: 2000-11-26 21:50-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -683,52 +683,52 @@ msgstr "" msgid "Can now UnJustify!" msgstr "" -#: nano.c:1903 +#: nano.c:1908 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1915 +#: nano.c:1920 msgid "enabled" msgstr "" -#: nano.c:1916 +#: nano.c:1921 msgid "disabled" msgstr "" -#: nano.c:2146 +#: nano.c:2151 msgid "Main: set up windows\n" msgstr "" -#: nano.c:2159 +#: nano.c:2164 msgid "Main: bottom win\n" msgstr "" -#: nano.c:2165 +#: nano.c:2170 msgid "Main: open file\n" msgstr "" -#: nano.c:2202 +#: nano.c:2207 #, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "" -#: nano.c:2224 +#: nano.c:2229 #, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "" -#: nano.c:2257 +#: nano.c:2262 #, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "" -#: nano.c:2305 +#: nano.c:2310 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "" -#: nano.c:2331 +#: nano.c:2336 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr ""