screen.cpp (bed-3.0.3.src.tar.xz) | : | screen.cpp (bed-3.1.0.src.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
#undef ERR | #undef ERR | |||
#include "editor.h" | #include "editor.h" | |||
#include "main.h" | #include "main.h" | |||
#include "cursesinit.h" | #include "cursesinit.h" | |||
#include "screen.h" | #include "screen.h" | |||
extern nocurses_init curses_init_curses; | extern nocurses_init curses_init_curses; | |||
extern void resizehandler(int signum) ; | extern void resizehandler(int signum) ; | |||
extern int makevisible(ScreenPart *part,int pos) ; | extern int makevisible(ScreenPart *part,int pos) ; | |||
void waitforsigwinch(void) { | void waitforsigwinch(void) { | |||
#ifdef HAVE_SIGSUSPEND | ||||
sigset_t mask, oldmask; | sigset_t mask, oldmask; | |||
sigemptyset (&mask); | sigemptyset (&mask); | |||
sigaddset (&mask, SIGWINCH); | sigaddset (&mask, SIGWINCH); | |||
sigprocmask (SIG_BLOCK, &mask, &oldmask); | sigprocmask (SIG_BLOCK, &mask, &oldmask); | |||
sigsuspend (&oldmask); | sigsuspend (&oldmask); | |||
sigprocmask (SIG_UNBLOCK, &mask, NULL); | sigprocmask (SIG_UNBLOCK, &mask, NULL); | |||
#endif | ||||
} | } | |||
extern char showfileinfo; | extern char showfileinfo; | |||
int Editor::toscreen(void) { | int Editor::toscreen(void) { | |||
if(editfocus<startactive||editfocus>=startnonactive) { | if(editfocus<startactive||editfocus>=startnonactive) { | |||
startactive=editfocus; | startactive=editfocus; | |||
startnonactive=editfocus+1; | startnonactive=editfocus+1; | |||
} | } | |||
if(resizeflag) | if(resizeflag) | |||
resized(); | resized(); | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |