Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 315:65aa05520556
First Ctrl-C now also leaves multi-line message mode
* First Ctrl-C does a "/msay abort" command
* Remove debug stuff
* "/msay abort" displays a message when leaving multi-line mode
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 15 Jul 2005 10:56:15 +0100 |
parents | 1ceb68eb2fc1 |
children | 33b8e801ffa6 |
comparison
equal
deleted
inserted
replaced
314:1ceb68eb2fc1 | 315:65aa05520556 |
---|---|
1490 wmove(inputWnd, 0, ptr_inputline - (char*)&inputLine - inputline_offset); | 1490 wmove(inputWnd, 0, ptr_inputline - (char*)&inputLine - inputline_offset); |
1491 } | 1491 } |
1492 | 1492 |
1493 void scr_handle_sigint(void) | 1493 void scr_handle_sigint(void) |
1494 { | 1494 { |
1495 scr_LogPrint("In screen. completion_started=%d", completion_started); | 1495 // Leave multi-line mode |
1496 process_command("/msay abort"); | |
1496 // Same as Ctrl-g, now | 1497 // Same as Ctrl-g, now |
1497 scr_cancel_current_completion(); | 1498 scr_cancel_current_completion(); |
1498 scr_end_current_completion(); | 1499 scr_end_current_completion(); |
1499 check_offset(-1); | 1500 check_offset(-1); |
1500 refresh_inputline(); | 1501 refresh_inputline(); |