diff options
author | rcyeske <rcyeske> | 2001-02-26 00:31:49 +0000 |
---|---|---|
committer | rcyeske <rcyeske> | 2001-02-26 00:31:49 +0000 |
commit | ca8d87a00c097cf1fa5a1c9c12333831f34e32ab (patch) | |
tree | 8556cd09a69631fa6e9c3b357435ab6497d008b1 /src/actions.c | |
parent | 85158fa1ccb413a66a2ad62e3b6330a2ecb478da (diff) | |
download | ratpoison-ca8d87a00c097cf1fa5a1c9c12333831f34e32ab.zip |
added cmd_source
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 13 |
1 files changed, 10 insertions, 3 deletions
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 @@ -260,6 +261,12 @@ cmd_unimplemented (void *data) } void +cmd_source (void *data) +{ + read_rc_file ((char*)data); +} + +void cmd_generate (void *data) { XEvent ev1, ev; @@ -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); |