Ticket #2014: 0002-Fix-indentation-after-last-commit.patch

File 0002-Fix-indentation-after-last-commit.patch, 1.4 KB (added by cosoleto, 14 years ago)
  • src/cmd.c

    From efabdc542fa8f893a8b316d088af77caa245c5f2 Mon Sep 17 00:00:00 2001
    From: Francesco Cosoleto <cosoleto@gmail.com>
    Date: Tue, 9 Feb 2010 19:10:04 +0100
    Subject: [PATCH 2/2] Fix indentation after last commit.
    
    
    Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
    ---
     src/cmd.c |   29 ++++++++++++++---------------
     1 files changed, 14 insertions(+), 15 deletions(-)
    
    diff --git a/src/cmd.c b/src/cmd.c
    index 2c4f2d7..bafbed0 100644
    a b mkdir_cmd (void) 
    401401        return; 
    402402 
    403403    if (*dir) { 
    404     if (dir[0] == '/' || dir[0] == '~') 
    405         absdir = g_strdup (dir); 
    406     else 
    407         absdir = concat_dir_and_file (current_panel->cwd, dir); 
    408  
    409     save_cwds_stat (); 
    410     if (my_mkdir (absdir, 0777) == 0) { 
    411         update_panels (UP_OPTIMIZE, dir); 
    412         repaint_screen (); 
    413         select_item (current_panel); 
    414     } else { 
    415         message (D_ERROR, MSG_ERROR, "  %s  ", unix_error_string (errno)); 
    416     } 
    417  
    418     g_free (absdir); 
     404        if (dir[0] == '/' || dir[0] == '~') 
     405            absdir = g_strdup (dir); 
     406        else 
     407            absdir = concat_dir_and_file (current_panel->cwd, dir); 
     408 
     409        save_cwds_stat (); 
     410        if (my_mkdir (absdir, 0777) == 0) { 
     411            update_panels (UP_OPTIMIZE, dir); 
     412            repaint_screen (); 
     413            select_item (current_panel); 
     414        } else { 
     415            message (D_ERROR, MSG_ERROR, "  %s  ", unix_error_string (errno)); 
     416        } 
     417        g_free (absdir); 
    419418    } 
    420419    g_free (dir); 
    421420}