diff options
author | sabetts <sabetts> | 2001-04-07 03:16:21 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-04-07 03:16:21 +0000 |
commit | 061f1abef270b3e79326f8f7a4cac1b3a49b7bc1 (patch) | |
tree | 77f9aa4dae806dcc4e092fddd2782faa278bfc2b /src/actions.c | |
parent | df64022d3e7c09826c573a050e537b639afb8034 (diff) | |
download | ratpoison-061f1abef270b3e79326f8f7a4cac1b3a49b7bc1.zip |
* src/split.c (remove_all_splits): only maximize the current
window if there is one.
(maximize_frame): remove unused code to retrieve the current
screen_info.
* src/actions.c (cmd_h_split): calls h_split_frame on the current
frame.
(cmd_v_split): likewise
(cmd_only): even if the current frame is empty, call
remove_all_splits.
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c index ced4c8e..b33941e 100644 --- a/src/actions.c +++ b/src/actions.c @@ -817,20 +817,18 @@ cmd_echo (void *data) void cmd_h_split (void *data) { - h_split_frame (find_windows_frame (current_window())); + h_split_frame (rp_current_frame); } void cmd_v_split (void *data) { - v_split_frame (find_windows_frame (current_window())); + v_split_frame (rp_current_frame); } void cmd_only (void *data) { - if (!current_window()) return; - remove_all_splits(); maximize (current_window()); } |