diff options
Diffstat (limited to 'src/gui/curses/gui-curses-key.c')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index 51fdd22c9..b1205b400 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -222,7 +222,7 @@ gui_key_default_bindings (int context) for (i = 1; i < 100; i++) { snprintf (key_str, sizeof (key_str), "meta-j%02d", i); - snprintf (command, sizeof (command), "/buffer %d", i); + snprintf (command, sizeof (command), "/buffer *%d", i); BIND(key_str, command); } } @@ -381,7 +381,7 @@ gui_key_flush (int paste) (void) utf8_is_valid (ptr_char, &ptr_error); if (!ptr_error) break; - next_char = utf8_next_char (ptr_error); + next_char = (char *)utf8_next_char (ptr_error); if (next_char && next_char[0]) { ptr_char = ptr_error; @@ -466,7 +466,10 @@ gui_key_flush (int paste) * found */ if (CONFIG_BOOLEAN(config_look_search_text_not_found_alert)) - printf ("\a"); + { + fprintf (stderr, "\a"); + fflush (stderr); + } } else { |