^X^P sometimes doesn't put trailing slash



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]