From 8fe4f9e73396be7894f7b72b3428a55b76bb7643 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sun, 20 Dec 2020 19:20:40 +0100 Subject: [PATCH] Simplify reloading, remove lines. Thanks Bob for the suggestion! --- catpoint.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/catpoint.c b/catpoint.c index d105b0d..9b14cae 100644 --- a/catpoint.c +++ b/catpoint.c @@ -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;