Ticket #207: 99a_fix-regex-bol-match.patch

File 99a_fix-regex-bol-match.patch, 492 bytes (added by Patrick Winnertz, 10 years ago)

Added by email2trac

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

    old new  
    17211721            int found_start, match_bol, move_win = 0; 
    17221722 
    17231723            while (start + offset < last_byte) { 
    1724                 match_bol = (offset == 0 || (*get_byte) (data, start + offset - 1) == '\n'); 
     1724                match_bol = (start == 0 || (*get_byte) (data, start + offset - 1) == '\n'); 
    17251725                if (!move_win) { 
    17261726                    p = start + offset; 
    17271727                    q = 0;