comparison mcabber/src/screen.c @ 1187:16abe7ec3056

Fix a conflict between verbatim multiline mode and the key binding system
author Mikael Berthe <mikael@lilotux.net>
date Fri, 20 Apr 2007 17:14:38 +0200
parents 0158bd8ca9d6
children be06bbe7e449
comparison
equal deleted inserted replaced
1186:0158bd8ca9d6 1187:16abe7ec3056
2630 2630
2631 void readline_send_multiline(void) 2631 void readline_send_multiline(void)
2632 { 2632 {
2633 // Validate current multi-line 2633 // Validate current multi-line
2634 if (scr_get_multimode()) 2634 if (scr_get_multimode())
2635 process_command(mkcmdstr("msay send")); 2635 process_command(mkcmdstr("msay send"), TRUE);
2636 } 2636 }
2637 2637
2638 // which_row() 2638 // which_row()
2639 // Tells which row our cursor is in, in the command line. 2639 // Tells which row our cursor is in, in the command line.
2640 // -2 -> normal text 2640 // -2 -> normal text
2889 2889
2890 void scr_handle_CtrlC(void) 2890 void scr_handle_CtrlC(void)
2891 { 2891 {
2892 if (!Curses) return; 2892 if (!Curses) return;
2893 // Leave multi-line mode 2893 // Leave multi-line mode
2894 process_command(mkcmdstr("msay abort")); 2894 process_command(mkcmdstr("msay abort"), TRUE);
2895 // Same as Ctrl-g, now 2895 // Same as Ctrl-g, now
2896 scr_cancel_current_completion(); 2896 scr_cancel_current_completion();
2897 scr_end_current_completion(); 2897 scr_end_current_completion();
2898 check_offset(-1); 2898 check_offset(-1);
2899 refresh_inputline(); 2899 refresh_inputline();
3082 if (boundcmd) { 3082 if (boundcmd) {
3083 gchar *cmdline, *boundcmd_locale; 3083 gchar *cmdline, *boundcmd_locale;
3084 boundcmd_locale = from_utf8(boundcmd); 3084 boundcmd_locale = from_utf8(boundcmd);
3085 cmdline = g_strdup_printf(mkcmdstr("%s"), boundcmd_locale); 3085 cmdline = g_strdup_printf(mkcmdstr("%s"), boundcmd_locale);
3086 scr_CheckAutoAway(TRUE); 3086 scr_CheckAutoAway(TRUE);
3087 if (process_command(cmdline)) 3087 if (process_command(cmdline, TRUE))
3088 return 255; // Quit 3088 return 255; // Quit
3089 g_free(boundcmd_locale); 3089 g_free(boundcmd_locale);
3090 g_free(cmdline); 3090 g_free(cmdline);
3091 return 0; 3091 return 0;
3092 } 3092 }