git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@682
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
do_browser()
- Don't shift the size of the file is it's less than 1K. Fixed
files less than 1K being displayed as 0B (Rocco).
+- move.c:
+ do_home(), do_end()
+ - Don't keep cutbuffer.
- nano.c:
do_alt_speller()
- Try to go to the same line we were on before before spell check
/* If the next line is empty, create a dummy line and add it
to the cutbuffer */
- if (current->next != NULL && strlen(current->next->data) == 0) {
+ if ((current->next != NULL && strlen(current->next->data) == 0) ||
+ (current == fileage && strlen(current->data) == 0)) {
filestruct *junk;
- junk = copy_node(current->next);
+ if (current == fileage)
+ junk = copy_node(current);
+ else
+ junk = copy_node(current->next);
+
add_to_cutbuffer(junk);
}
do_delete();
int do_home(void)
{
+ UNSET(KEEP_CUTBUFFER);
current_x = 0;
placewewant = 0;
update_line(current, current_x);
int do_end(void)
{
+ UNSET(KEEP_CUTBUFFER);
current_x = strlen(current->data);
placewewant = xplustabs();
update_line(current, current_x);