diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c index b7f00ff..1240c3a 100644 --- a/src/actions.c +++ b/src/actions.c @@ -557,10 +557,11 @@ void goto_window_number (void *data) { int n = (int)data; - rp_window *win; - if ((win = find_window_by_number (n)) == NULL) + win = find_window_by_number (n); + + if (win == NULL) { /* Display window list to indicate failure. */ /* FIXME: We can always assume there is 1 screen, but which one @@ -569,6 +570,11 @@ goto_window_number (void *data) return; } + if (win == rp_current_window) + { + /* TODO: Add message "This IS window # (xxx) */ + } + set_active_window (win); } |