2013-01-20 Chris Allegretta <chrisa@asty.org>
* src/text.c (do_histify): Don't allow sigwinch to be received while justifying as that puts us into a wacky state. Fixess crash on justify by Joshua Rogers. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4565 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
29479ca7f5
commit
67acf2c753
|
@ -1,3 +1,7 @@
|
||||||
|
2013-01-20 Chris Allegretta <chrisa@asty.org>
|
||||||
|
* src/text.c (do_histify): Don't allow sigwinch to be received while justifying
|
||||||
|
as that puts us into a wacky state. Fixess crash on justify by Joshua Rogers.
|
||||||
|
|
||||||
2013-01-19 Chris Allegretta <chrisa@asty.org>
|
2013-01-19 Chris Allegretta <chrisa@asty.org>
|
||||||
* configure.ac: Make ncursesw checking dependent on the presence of ncursesw.h,
|
* configure.ac: Make ncursesw checking dependent on the presence of ncursesw.h,
|
||||||
since without the header files we can't compile.
|
since without the header files we can't compile.
|
||||||
|
|
|
@ -1979,6 +1979,8 @@ void do_justify(bool full_justify)
|
||||||
if (full_justify)
|
if (full_justify)
|
||||||
openfile->current = openfile->fileage;
|
openfile->current = openfile->fileage;
|
||||||
|
|
||||||
|
allow_pending_sigwinch(FALSE);
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
size_t i;
|
size_t i;
|
||||||
/* Generic loop variable. */
|
/* Generic loop variable. */
|
||||||
|
@ -2349,6 +2351,9 @@ void do_justify(bool full_justify)
|
||||||
/* Display the shortcut list with UnCut. */
|
/* Display the shortcut list with UnCut. */
|
||||||
shortcut_init(FALSE);
|
shortcut_init(FALSE);
|
||||||
display_main_list();
|
display_main_list();
|
||||||
|
|
||||||
|
allow_pending_sigwinch(TRUE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Justify the current paragraph. */
|
/* Justify the current paragraph. */
|
||||||
|
|
Loading…
Reference in New Issue