revert change to do_justify(), since it's used when fileage may be
temporarily out of range git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3152 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
ae9eea7634
commit
985d586c3a
|
@ -49,8 +49,7 @@ CVS code -
|
||||||
do_page_down(), do_para_end(), do_next_word(), do_prev_word(),
|
do_page_down(), do_para_end(), do_next_word(), do_prev_word(),
|
||||||
do_up(), do_down(), do_scroll_down(), do_right(), do_mouse(),
|
do_up(), do_down(), do_scroll_down(), do_right(), do_mouse(),
|
||||||
do_gotolinecolumn(), do_delete(), begpar(), find_paragraph(),
|
do_gotolinecolumn(), do_delete(), begpar(), find_paragraph(),
|
||||||
do_justify(), do_wrap(), remove_magicline(), and
|
do_wrap(), remove_magicline(), and edit_scroll(). (DLR)
|
||||||
edit_scroll(). (DLR)
|
|
||||||
- Add new -L/--nonewlines command line option, and new
|
- Add new -L/--nonewlines command line option, and new
|
||||||
"nonewlines" rcfile option, to control whether nano adds
|
"nonewlines" rcfile option, to control whether nano adds
|
||||||
magiclines to the ends of files. Changes to read_file(),
|
magiclines to the ends of files. Changes to read_file(),
|
||||||
|
|
|
@ -1420,7 +1420,7 @@ void do_justify(bool full_justify)
|
||||||
* something). */
|
* something). */
|
||||||
last_par_line = openfile->current;
|
last_par_line = openfile->current;
|
||||||
if (first_par_line != NULL) {
|
if (first_par_line != NULL) {
|
||||||
if (first_par_line == openfile->fileage)
|
if (first_par_line->prev == NULL)
|
||||||
openfile->fileage = first_par_line;
|
openfile->fileage = first_par_line;
|
||||||
renumber(first_par_line);
|
renumber(first_par_line);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue