Bug fixes for do_enter and do_backspace

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@151 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2000-07-31 01:26:42 +00:00
parent 234a34d273
commit da721be17a
6 changed files with 29 additions and 5 deletions

19
BUGS
View File

@ -62,3 +62,22 @@
written out to disk when saved..... (37).
- Page up and page down do not work the same way as Pico (# of lines). (38)

View File

@ -9,6 +9,11 @@ CVS code
- New function, nulls a string at a given index and realigns it.
delete_buffer()
- Removed, same as free_filestruct().
do_backspace()
- Now calls page_up_center instead of page_up (as it should?)
do_enter()
- Fixed typo (?) in check for inptr->next. Caused lots of
grief for editing lines at filebot.
- search.c:
replace_abort()
- redundant, now just calls search abort until it does something

4
nano.c
View File

@ -527,7 +527,7 @@ int do_enter(filestruct * inptr)
}
*tmp = 0;
if (inptr->next != NULL) {
if (inptr->next == NULL) {
filebot = new;
editbot = new;
}
@ -956,7 +956,7 @@ int do_backspace(void)
current = previous->next;
else
current = previous;
page_up();
page_up_center();
} else {
if (previous->next)
current = previous->next;

View File

@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-07-29 00:38-0400\n"
"POT-Creation-Date: 2000-07-30 21:30-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"

View File

@ -110,7 +110,7 @@ void null_at(char *data, int index);
int do_writeout_void(void), do_exit(void), do_gotoline_void(void);
int do_insertfile(void), do_search(void), page_up(void), page_down(void);
int do_cursorpos(void), do_spell(void);
int do_cursorpos(void), do_spell(void), page_up_center(void);
int do_up(void), do_down (void), do_right(void), do_left (void);
int do_home(void), do_end(void), total_refresh(void), do_mark(void);
int do_delete(void), do_backspace(void), do_tab(void), do_justify(void);

View File

@ -840,7 +840,7 @@ void edit_refresh(void)
lines++;
}
if (!currentcheck) /* Then current has run off the screen... */
edit_update(current, CENTER);
edit_update(current, CENTER);
if (lines <= editwinrows - 1)
while (lines <= editwinrows - 1) {