Simplify reloading, remove lines.
Thanks Bob for the suggestion!
This commit is contained in:
parent
bfffb92ac6
commit
8fe4f9e733
@ -59,8 +59,6 @@ loadcurrentslide(char **argv, int slide)
|
|||||||
void
|
void
|
||||||
reloadcurrentslide(int sig)
|
reloadcurrentslide(int sig)
|
||||||
{
|
{
|
||||||
loadcurrentslide(slidefiles, currentslide);
|
|
||||||
|
|
||||||
if (sig == SIGHUP) {
|
if (sig == SIGHUP) {
|
||||||
/* Make ncurses redisplay slide. */
|
/* Make ncurses redisplay slide. */
|
||||||
if (raise(SIGWINCH) < 0)
|
if (raise(SIGWINCH) < 0)
|
||||||
@ -168,8 +166,6 @@ again:
|
|||||||
goto show;
|
goto show;
|
||||||
/* reload */
|
/* reload */
|
||||||
case 'r':
|
case 'r':
|
||||||
reloadcurrentslide(0);
|
|
||||||
goto show;
|
|
||||||
case 12: /* ^L, redraw */
|
case 12: /* ^L, redraw */
|
||||||
case KEY_RESIZE: /* resize / SIGWINCH */
|
case KEY_RESIZE: /* resize / SIGWINCH */
|
||||||
goto show;
|
goto show;
|
||||||
|
Loading…
Reference in New Issue
Block a user