summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-07-15 18:06:56 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-07-15 18:06:56 +0000
commit3b48025071bff1e175bfe4778f2400d35fc0406e (patch)
tree32e458bade3b1fcc0848ff31242c249b75896040 /src/gui/curses
parentfeec343ffb74b2e317b89b0af2276320a9211b0c (diff)
downloadweechat-3b48025071bff1e175bfe4778f2400d35fc0406e.zip
Added key function "jump_previous_buffer" to jump to buffer previously displayed (new key: alt-J + alt-P) (task #7085)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-keyboard.c3
-rw-r--r--src/gui/curses/gui-curses-window.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-keyboard.c b/src/gui/curses/gui-curses-keyboard.c
index 90074bb27..24e4c9fdf 100644
--- a/src/gui/curses/gui-curses-keyboard.c
+++ b/src/gui/curses/gui-curses-keyboard.c
@@ -95,9 +95,10 @@ gui_keyboard_default_bindings ()
gui_keyboard_bind ( /* m-i */ "meta-i" , "infobar_clear");
gui_keyboard_bind ( /* m-j,m-d */ "meta-jmeta-d", "jump_dcc");
gui_keyboard_bind ( /* m-j,m-l */ "meta-jmeta-l", "jump_last_buffer");
+ gui_keyboard_bind ( /* m-j,m-p */ "meta-jmeta-p", "jump_previous_buffer");
+ gui_keyboard_bind ( /* m-j,m-r */ "meta-jmeta-r", "jump_raw_data");
gui_keyboard_bind ( /* m-j,m-s */ "meta-jmeta-s", "jump_server");
gui_keyboard_bind ( /* m-j,m-x */ "meta-jmeta-x", "jump_next_server");
- gui_keyboard_bind ( /* m-j,m-r */ "meta-jmeta-r", "jump_raw_data");
gui_keyboard_bind ( /* m-k */ "meta-k", "grab_key");
gui_keyboard_bind ( /* m-n */ "meta-n", "scroll_next_highlight");
gui_keyboard_bind ( /* m-p */ "meta-p", "scroll_previous_highlight");
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index 19a9bdc02..a70017d3b 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -448,6 +448,7 @@ gui_window_switch_to_buffer (t_gui_window *window, t_gui_buffer *buffer)
window->buffer->last_read_line = window->buffer->last_line;
if (buffer->last_read_line == buffer->last_line)
buffer->last_read_line = NULL;
+ gui_previous_buffer = window->buffer;
}
window->buffer = buffer;