Removing some duplication in the initialization of a new openfile node.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5364 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
a5b29539b1
commit
149b1fe439
|
@ -9,6 +9,8 @@
|
||||||
so for determining the length of the current line, don't start at that
|
so for determining the length of the current line, don't start at that
|
||||||
location but at the beginning. This fixes Savannah bug #45770.
|
location but at the beginning. This fixes Savannah bug #45770.
|
||||||
* src/help.c (help_line_len): Rename and reorder most of it.
|
* src/help.c (help_line_len): Rename and reorder most of it.
|
||||||
|
* src/nano.c (make_new_opennode), src/files.c (initialize_buffer):
|
||||||
|
Remove some duplication in the initialization of a new openfile node.
|
||||||
|
|
||||||
2015-08-13 Benno Schulenberg <bensberg@justemail.net>
|
2015-08-13 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/search.c (do_find_bracket): Remove mistaken comparison between
|
* src/search.c (do_find_bracket): Remove mistaken comparison between
|
||||||
|
|
|
@ -78,6 +78,7 @@ void initialize_buffer(void)
|
||||||
|
|
||||||
openfile->undotop = NULL;
|
openfile->undotop = NULL;
|
||||||
openfile->current_undo = NULL;
|
openfile->current_undo = NULL;
|
||||||
|
openfile->last_action = OTHER;
|
||||||
|
|
||||||
openfile->current_stat = NULL;
|
openfile->current_stat = NULL;
|
||||||
openfile->lock_filename = NULL;
|
openfile->lock_filename = NULL;
|
||||||
|
|
|
@ -525,11 +525,6 @@ openfilestruct *make_new_opennode(void)
|
||||||
newnode->filebot = NULL;
|
newnode->filebot = NULL;
|
||||||
newnode->edittop = NULL;
|
newnode->edittop = NULL;
|
||||||
newnode->current = NULL;
|
newnode->current = NULL;
|
||||||
#ifndef NANO_TINY
|
|
||||||
newnode->current_stat = NULL;
|
|
||||||
newnode->last_action = OTHER;
|
|
||||||
newnode->lock_filename = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue