Simplify reloading, remove lines.

Thanks Bob for the suggestion!
master
Christoph Lohmann 2020-12-20 19:20:40 +01:00
parent bfffb92ac6
commit 8fe4f9e733
1 changed files with 0 additions and 4 deletions

View File

@ -59,8 +59,6 @@ loadcurrentslide(char **argv, int slide)
void
reloadcurrentslide(int sig)
{
loadcurrentslide(slidefiles, currentslide);
if (sig == SIGHUP) {
/* Make ncurses redisplay slide. */
if (raise(SIGWINCH) < 0)
@ -168,8 +166,6 @@ again:
goto show;
/* reload */
case 'r':
reloadcurrentslide(0);
goto show;
case 12: /* ^L, redraw */
case KEY_RESIZE: /* resize / SIGWINCH */
goto show;