[bug #16176] MC incorrectly completes directories with spaces

Pavel Tsekov savannah-bounces at gnu.org
Fri Mar 24 14:53:26 UTC 2006


URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16176>

                 Summary: MC incorrectly completes directories with spaces
                 Project: GNU Midnight Commander
            Submitted by: ptsekov
            Submitted on: Fri 03/24/06 at 16:53
                Category: Core
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: All versions
        Platform Version: All

    _______________________________________________________

Details:

This bugreport is based on information found it the Debian bug reporting
system:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326047

I confirmed that the bug exists and needs to be fixed. It is the following
code from complete_engine () that causes the problem:

    if (!in->completions){
        end = in->point; 
        for (start = end ? end - 1 : 0; start > -1; start--)
            if (strchr (" \t;|<>", in->buffer [start]))
                break; 
        if (start < end)
            start++;
        in->completions = try_complete (in->buffer, &start, &end,
in->completion_flags);
    }







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16176>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




More information about the mc-devel mailing list