summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/actions.c b/src/actions.c
index a5b2f65..ec44cda 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2439,8 +2439,11 @@ cmd_nextscreen (int interactive, void *data)
int new_screen;
/* No need to go through the motions when we don't have to. */
- if (num_screens <= 1) return NULL;
-
+ if (num_screens <= 1)
+ {
+ message (" nextscreen: No other screen ");
+ return NULL;
+ }
new_screen = rp_current_screen + 1;
if (new_screen >= num_screens)
new_screen = 0;
@@ -2456,7 +2459,11 @@ cmd_prevscreen (int interactive, void *data)
int new_screen;
/* No need to go through the motions when we don't have to. */
- if (num_screens <= 1) return NULL;
+ if (num_screens <= 1)
+ {
+ message (" prevscreen: No other screen ");
+ return NULL;
+ }
new_screen = rp_current_screen - 1;
if (new_screen < 0)