Ticket #3225: mc-3225-bs-del-after-mouse-click.patch

File mc-3225-bs-del-after-mouse-click.patch, 763 bytes (added by egmont, 6 years ago)

fix

  • lib/widget/input.c

    diff -ur mc-4.8.12.orig/lib/widget/input.c mc-4.8.12/lib/widget/input.c
    old new  
    754754        forward_word (in); 
    755755        break; 
    756756    case CK_BackSpace: 
    757         if (in->highlight) 
     757        if (in->highlight && in->point != in->mark) 
    758758        { 
    759759            long m1, m2; 
    760760            if (input_eval_marks (in, &m1, &m2)) 
     
    766766    case CK_Delete: 
    767767        if (in->first) 
    768768            port_region_marked_for_delete (in); 
    769         else if (in->highlight) 
     769        else if (in->highlight && in->point != in->mark) 
    770770        { 
    771771            long m1, m2; 
    772772            if (input_eval_marks (in, &m1, &m2))