find, panelize, internal edit, bug

Roland Illig roland.illig at gmx.de
Fri Feb 3 14:23:54 UTC 2006


Hi,

the try_to_select function in screen.c does not behave as expected in 
the following situation:

1. "find files" in a directory with subdirectories
2. "panelize"
3. select a file from a subdirectory that is also present in
    the main directory. Press <F4>. Press <F10>.
4. mc now selects the file from the main directory instead of
    keeping the selection on the file that has just been edited.

The appended patch fixes it. I have no idea why the code needs to strip 
the subdirectory and the suffix, but it basically comes from revision 
1.1, so it is undocumented. :(

Roland
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: edit-from-panelize.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20060203/5c6714eb/attachment.ksh>


More information about the mc-devel mailing list