commit 80b1a263250b1efc820659eee7134a5a61f65d3f parent 68ef54b661d4e28bb74d67b1bdf81d997abb08db Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 28 Dec 2020 15:19:51 +0100 Set slidechanged before raise. Thanks Bob! Diffstat:
catpoint.c | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/catpoint.c b/catpoint.c @@ -61,16 +61,16 @@ loadcurrentslide(char **argv, int slide) void reloadcurrentslide(int sig) { + /* + * Keep this out of SIGHUP, in case this is used somewhere else. + */ + slidechanged = 1; + if (sig == SIGHUP) { /* Make ncurses redisplay slide. */ if (raise(SIGWINCH) < 0) err(1, "raise"); } - - /* - * Keep this out of SIGHUP, in case this is used somewhere else. - */ - slidechanged = 1; } void