Ticket #207: 99c_fix-regex-newline-match.patch

File 99c_fix-regex-newline-match.patch, 439 bytes (added by Patrick Winnertz, 10 years ago)

Added by email2trac

  • mc-4.6.2~git20080311/edit/editcmd.c

    old new  
    15701570            g_free (old_pattern); 
    15711571            old_pattern = 0; 
    15721572        } 
    1573         if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0))) { 
     1573        if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0) | 
     1574            REG_NEWLINE)) { 
    15741575            *found_len = 0; 
    15751576            return -3; 
    15761577        }