Ticket #2952: respect_empty_matches.patch

File respect_empty_matches.patch, 302 bytes (added by boris, 5 years ago)
  • lib/search/regex.c

    a b  
    370370#endif /* SEARCH_TYPE_GLIB */ 
    371371 
    372372    if (fnd_end - fnd_start == 0) 
    373         return NULL; 
     373    { 
     374        fnd_end = fnd_start = 0; 
     375    } 
    374376 
    375377    return g_strndup (lc_mc_search->regex_buffer->str + fnd_start, fnd_end - fnd_start); 
    376378