- cut.c:
do_cut_text()
- Fixed getting locked into cutbuffer on cutting first line of file.
+ - Added check_statblank().
+ - Check for fileptr == filebot, if so return, we shouldn't bother
+ cutting the magic line.
+ do_uncut_text()
+ - Added check_statblank().
- nano.c:
main()
- Changed tabsize long arg to actually accept an argument *sigh*.
int newsize, cuttingtoend = 0;
#endif
- if (fileptr == NULL || fileptr->data == NULL)
+ check_statblank();
+ if (fileptr == NULL || fileptr->data == NULL || fileptr == filebot)
return 0;
tmp = fileptr->next;
current = fileptr->next;
totlines--;
totsize--; /* get the newline */
- } else {
- /* we're deleteing the last line
- and replacing it with a dummy line,
- so totlines is the same */
- tmp = fileptr->prev;
- tmp->next = make_new_node(tmp);
- tmp = tmp->next;
- tmp->data = nmalloc(1);
- strcpy(tmp->data, "");
- current = tmp;
- filebot = tmp;
- }
+ } /* No longer an else here, because we never get here anymore...
+ No need to cut the magic line, as it's empty */
add_to_cutbuffer(fileptr);
}
int i;
wrap_reset();
+ check_statblank();
if (cutbuffer == NULL || fileptr == NULL)
return 0; /* AIEEEEEEEEEEEE */
-# Nano strings file.
+# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
-# Chris Allegretta <chrisa@asty.org>, 2000.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-08-06 17:19-0400\n"
+"POT-Creation-Date: 2000-08-07 10:44-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"
msgid "add_to_cutbuffer called with inptr->data = %s\n"
msgstr ""
-#: cut.c:149
+#: cut.c:150
msgid "Blew away cutbuffer =)\n"
msgstr ""