Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 365:ddb6593bedc9
Fix segfault when mcabber receives an INT signal (Ctrl-C) early
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 24 Jul 2005 15:19:07 +0100 |
parents | 33b8e801ffa6 |
children | 499170ed71c9 |
comparison
equal
deleted
inserted
replaced
364:33b8e801ffa6 | 365:ddb6593bedc9 |
---|---|
1397 wmove(inputWnd, 0, ptr_inputline - (char*)&inputLine - inputline_offset); | 1397 wmove(inputWnd, 0, ptr_inputline - (char*)&inputLine - inputline_offset); |
1398 } | 1398 } |
1399 | 1399 |
1400 void scr_handle_sigint(void) | 1400 void scr_handle_sigint(void) |
1401 { | 1401 { |
1402 if (!Curses) return; | |
1402 // Leave multi-line mode | 1403 // Leave multi-line mode |
1403 process_command("/msay abort"); | 1404 process_command("/msay abort"); |
1404 // Same as Ctrl-g, now | 1405 // Same as Ctrl-g, now |
1405 scr_cancel_current_completion(); | 1406 scr_cancel_current_completion(); |
1406 scr_end_current_completion(); | 1407 scr_end_current_completion(); |