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

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
parent 234a34d2
Showing with 29 additions and 5 deletions
+29 -5
...@@ -62,3 +62,22 @@ ...@@ -62,3 +62,22 @@
written out to disk when saved..... (37). written out to disk when saved..... (37).
- Page up and page down do not work the same way as Pico (# of lines). (38) - Page up and page down do not work the same way as Pico (# of lines). (38)
...@@ -9,6 +9,11 @@ CVS code ...@@ -9,6 +9,11 @@ CVS code
- New function, nulls a string at a given index and realigns it. - New function, nulls a string at a given index and realigns it.
delete_buffer() delete_buffer()
- Removed, same as free_filestruct(). - 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: - search.c:
replace_abort() replace_abort()
- redundant, now just calls search abort until it does something - redundant, now just calls search abort until it does something
......
...@@ -527,7 +527,7 @@ int do_enter(filestruct * inptr) ...@@ -527,7 +527,7 @@ int do_enter(filestruct * inptr)
} }
*tmp = 0; *tmp = 0;
if (inptr->next != NULL) { if (inptr->next == NULL) {
filebot = new; filebot = new;
editbot = new; editbot = new;
} }
...@@ -956,7 +956,7 @@ int do_backspace(void) ...@@ -956,7 +956,7 @@ int do_backspace(void)
current = previous->next; current = previous->next;
else else
current = previous; current = previous;
page_up(); page_up_center();
} else { } else {
if (previous->next) if (previous->next)
current = previous->next; current = previous->next;
......
...@@ -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-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" "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"
......
...@@ -110,7 +110,7 @@ void null_at(char *data, int index); ...@@ -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_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_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_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_home(void), do_end(void), total_refresh(void), do_mark(void);
int do_delete(void), do_backspace(void), do_tab(void), do_justify(void); int do_delete(void), do_backspace(void), do_tab(void), do_justify(void);
......
...@@ -840,7 +840,7 @@ void edit_refresh(void) ...@@ -840,7 +840,7 @@ void edit_refresh(void)
lines++; lines++;
} }
if (!currentcheck) /* Then current has run off the screen... */ if (!currentcheck) /* Then current has run off the screen... */
edit_update(current, CENTER); edit_update(current, CENTER);
if (lines <= editwinrows - 1) if (lines <= editwinrows - 1)
while (lines <= editwinrows - 1) { while (lines <= editwinrows - 1) {
......
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