Ticket #69: 12664-string_regexp_search-match-eol.patch

File 12664-string_regexp_search-match-eol.patch, 600 bytes (added by slavazanko, 11 years ago)

added by ptsekov

  • edit/editcmd.c

    RCS file: /sources/mc/mc/edit/editcmd.c,v
    retrieving revision 1.154
    diff -u -p -r1.154 editcmd.c
    string_regexp_search (char *pattern, cha 
    14521452            g_free (old_pattern); 
    14531453            old_pattern = 0; 
    14541454        } 
    1455         if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0))) { 
     1455        if (regcomp (&r, pattern, REG_EXTENDED | REG_NEWLINE | (icase ? REG_ICASE : 0))) { 
    14561456            *found_len = 0; 
    14571457            return -3; 
    14581458        }