summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-input.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-07-10 07:39:06 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-07-10 07:39:06 +0000
commitab393805fbe5ff4d77f5ad326cff12568bc661e2 (patch)
tree58f0b515c145db3532a0412b6bb40aeadf24134a /src/gui/curses/gui-input.c
parentdea586e5f1d2429c2409fbdc0ffd87db6881c895 (diff)
downloadweechat-ab393805fbe5ff4d77f5ad326cff12568bc661e2.zip
Alt-0 now switches to buffer #10
Diffstat (limited to 'src/gui/curses/gui-input.c')
-rw-r--r--src/gui/curses/gui-input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c
index e56bbd038..6ca895220 100644
--- a/src/gui/curses/gui-input.c
+++ b/src/gui/curses/gui-input.c
@@ -330,6 +330,7 @@ gui_read_keyb ()
}
break;
/* Alt-number */
+ case 48: /* Alt-0 */
case 49: /* Alt-1 */
case 50: /* Alt-2 */
case 51: /* Alt-3 */
@@ -339,7 +340,7 @@ gui_read_keyb ()
case 55: /* Alt-7 */
case 56: /* Alt-8 */
case 57: /* Alt-9 */
- gui_switch_to_buffer_by_number (gui_current_window, key - 48);
+ gui_switch_to_buffer_by_number (gui_current_window, (key == 48) ? 10 : key - 48);
break;
/* Alt-A */
case 'a':