^X^P sometimes doesn't put trailing slash

Koblinger Egmont egmont at uhulinux.hu
Sat Aug 23 21:57:08 UTC 2003


Hi,

^X^P doesn't put a trailing slash under certain circumstances, e.g. if
you're in /tmp/asdf/x while the other panel is /tmp/foo/x.

The bug is in main.c copy_other_pathname():

    command_insert (cmdline, opanel->cwd, 0);
    if (cpanel->cwd[strlen (opanel->cwd) - 1] != PATH_SEP)
        ^^^^^^
        command_insert (cmdline, PATH_SEP_STR, 0);


that one should be opanel, too.




bye,
Egmont




More information about the mc-devel mailing list