summaryrefslogtreecommitdiff
path: root/src/gui/gui-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-input.c')
-rw-r--r--src/gui/gui-input.c142
1 files changed, 0 insertions, 142 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c
index 6fb378575..3208ca08d 100644
--- a/src/gui/gui-input.c
+++ b/src/gui/gui-input.c
@@ -1461,148 +1461,6 @@ gui_input_history_global_next (struct t_gui_buffer *buffer)
}
/*
- * Jumps to buffer with activity (default key: alt-a).
- */
-
-void
-gui_input_jump_smart (struct t_gui_buffer *buffer)
-{
- struct t_gui_window *window;
- int scroll_to_bottom;
-
- scroll_to_bottom = 0;
- window = gui_window_search_with_buffer (buffer);
- if (window
- && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED))
- {
- if (gui_hotlist)
- {
- if (!gui_hotlist_initial_buffer)
- gui_hotlist_initial_buffer = window->buffer;
- gui_window_switch_to_buffer (window, gui_hotlist->buffer, 1);
- gui_hotlist_remove_buffer (window->buffer, 0);
- scroll_to_bottom = 1;
- }
- else
- {
- if (gui_hotlist_initial_buffer)
- {
- if (CONFIG_BOOLEAN(config_look_jump_smart_back_to_buffer))
- {
- gui_window_switch_to_buffer (window,
- gui_hotlist_initial_buffer, 1);
- scroll_to_bottom = 1;
- }
- gui_hotlist_initial_buffer = NULL;
- }
- else
- {
- gui_hotlist_initial_buffer = NULL;
- }
- }
-
- /*
- * scroll to bottom if window was scrolled (except if scrolled
- * beyond the end)
- */
- if (scroll_to_bottom
- && window->scroll
- && window->scroll->start_line
- && (window->scroll->start_line_pos >= 0))
- {
- gui_window_scroll_bottom (window);
- }
- }
-}
-
-/*
- * Jumps to last buffer displayed (before last jump to a buffer) (default key:
- * alt-/).
- */
-
-void
-gui_input_jump_last_buffer_displayed (struct t_gui_buffer *buffer)
-{
- struct t_gui_window *window;
-
- window = gui_window_search_with_buffer (buffer);
- if (window
- && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED))
- {
- if (gui_buffer_last_displayed)
- gui_buffer_switch_by_number (window,
- gui_buffer_last_displayed->number);
- }
-}
-
-/*
- * Jumps to previously visited buffer (buffer displayed before current one)
- * (default key: alt-<).
- */
-
-void
-gui_input_jump_previously_visited_buffer (struct t_gui_buffer *buffer)
-{
- struct t_gui_window *window;
- int index;
- struct t_gui_buffer_visited *ptr_buffer_visited;
-
- window = gui_window_search_with_buffer (buffer);
- if (window
- && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED))
- {
- index = gui_buffer_visited_get_index_previous ();
- if (index >= 0)
- {
- gui_buffers_visited_index = index;
-
- ptr_buffer_visited =
- gui_buffer_visited_search_by_number (gui_buffers_visited_index);
- if (ptr_buffer_visited)
- {
- gui_buffers_visited_frozen = 1;
- gui_buffer_switch_by_number (window,
- ptr_buffer_visited->buffer->number);
- gui_buffers_visited_frozen = 0;
- }
- }
- }
-}
-
-/*
- * Jumps to next visited buffer (buffer displayed after current one) (default
- * key: alt->).
- */
-
-void
-gui_input_jump_next_visited_buffer (struct t_gui_buffer *buffer)
-{
- struct t_gui_window *window;
- int index;
- struct t_gui_buffer_visited *ptr_buffer_visited;
-
- window = gui_window_search_with_buffer (buffer);
- if (window
- && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED))
- {
- index = gui_buffer_visited_get_index_next ();
- if (index >= 0)
- {
- gui_buffers_visited_index = index;
-
- ptr_buffer_visited = gui_buffer_visited_search_by_number (gui_buffers_visited_index);
- if (ptr_buffer_visited)
- {
- gui_buffers_visited_frozen = 1;
- gui_buffer_switch_by_number (window,
- ptr_buffer_visited->buffer->number);
- gui_buffers_visited_frozen = 0;
- }
- }
- }
-}
-
-/*
* Clears hotlist (default key: alt-h, alt-c).
*/