From ca8d87a00c097cf1fa5a1c9c12333831f34e32ab Mon Sep 17 00:00:00 2001 From: rcyeske Date: Mon, 26 Feb 2001 00:31:49 +0000 Subject: added cmd_source --- src/actions.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index 0d8f2b7..10779d4 100644 --- a/src/actions.c +++ b/src/actions.c @@ -150,6 +150,7 @@ user_command user_commands[] = {"generate", cmd_generate, arg_STRING}, /* rename to stuff */ {"version", cmd_version, arg_VOID}, {"bind", cmd_bind, arg_VOID}, + {"source", cmd_source, arg_STRING}, /* the following screen commands may or may not be able to be implemented. See the screen documentation for what should be @@ -259,6 +260,12 @@ cmd_unimplemented (void *data) marked_message (" FIXME: unimplemented command ",0,8); } +void +cmd_source (void *data) +{ + read_rc_file ((char*)data); +} + void cmd_generate (void *data) { @@ -317,7 +324,7 @@ cmd_prev (void *data) { w = find_window_prev (rp_current_window); - if (w == rp_current_window) + if (!w) message (MESSAGE_NO_OTHER_WINDOW); else set_active_window (w); @@ -335,7 +342,7 @@ cmd_next (void *data) { w = find_window_next (rp_current_window); - if (w == rp_current_window) + if (!w) message (MESSAGE_NO_OTHER_WINDOW); else set_active_window (w); @@ -349,7 +356,7 @@ cmd_other (void *data) w = find_window_other (); - if (w == rp_current_window) + if (!w) message (MESSAGE_NO_OTHER_WINDOW); else set_active_window (w); -- cgit v1.2.3