File | Lines added | Lines deleted |
---|---|---|
src/ui/ui.c | 4 | 8 |
src/ui/ui.h | 0 | 4 |
File src/ui/ui.c changed (mode: 100644) (index de5da03bf..9d7dfe2a6) | |||
... | ... | move_window(FileView *view, int horizontally, int first) | |
1116 | 1116 | split_view(split_type); | split_view(split_type); |
1117 | 1117 | if(view != desired_view) | if(view != desired_view) |
1118 | 1118 | { | { |
1119 | switch_windows(); | ||
1119 | /* Switch two panes saving current windows as the active one (left/top or | ||
1120 | * right/bottom). */ | ||
1121 | switch_panes_content(); | ||
1122 | go_to_other_pane(); | ||
1120 | 1123 | } | } |
1121 | 1124 | } | } |
1122 | 1125 | ||
1123 | void | ||
1124 | switch_windows(void) | ||
1125 | { | ||
1126 | switch_panes_content(); | ||
1127 | go_to_other_pane(); | ||
1128 | } | ||
1129 | |||
1130 | 1126 | void | void |
1131 | 1127 | switch_panes(void) | switch_panes(void) |
1132 | 1128 | { | { |
File src/ui/ui.h changed (mode: 100644) (index 43571094d..bb0932191) | |||
... | ... | void refresh_view_win(FileView *view); | |
414 | 414 | * (horizontally/vertically, left-top/right-bottom). */ | * (horizontally/vertically, left-top/right-bottom). */ |
415 | 415 | void move_window(FileView *view, int horizontally, int first); | void move_window(FileView *view, int horizontally, int first); |
416 | 416 | ||
417 | /* Switches two panes saving current windows as the active one (left/top or | ||
418 | * right/bottom). */ | ||
419 | void switch_windows(void); | ||
420 | |||
421 | 417 | /* Swaps current and other views. */ | /* Swaps current and other views. */ |
422 | 418 | void switch_panes(void); | void switch_panes(void); |
423 | 419 |