Ticket #3557: mc-3557-editor-should-not-be-closed-on-Ctrl-G.patch

File mc-3557-editor-should-not-be-closed-on-Ctrl-G.patch, 1.0 KB (added by and, 9 years ago)
  • src/editor/editwidget.c

    From aa49ee547669d77386e4b58a8632025dc03f8a3b Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Mon, 16 Nov 2015 18:33:35 +0000
    Subject: [PATCH] fix #3557 - editor should not be closed on Ctrl-G
    
    solution for #2520 miss fix for editor
    ---
     src/editor/editwidget.c | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/editor/editwidget.c b/src/editor/editwidget.c
    index eb2e812..23eebdb 100644
    a b edit_dialog_command_execute (WDialog * h, unsigned long command) 
    741741        edit_menu_cmd (h); 
    742742        break; 
    743743    case CK_Quit: 
    744     case CK_Cancel: 
    745744        { 
    746745            Widget *w = WIDGET (h->current->data); 
    747746 
    edit_dialog_command_execute (WDialog * h, unsigned long command) 
    800799    case CK_SaveSetup: 
    801800        save_setup_cmd (); 
    802801        break; 
     802    case CK_Cancel: 
     803        /* don't close editor due to SIGINT */ 
     804        break; 
    803805    default: 
    804806        ret = MSG_NOT_HANDLED; 
    805807        break;