Ok - now I got it.
And I agree - that would be one of these slick features I like too:
'edit' a dir 'changes' to it - cool !
I thought that can't that difficult and I made this small patch to make it work (@see the // HS2: comment)
Unfortunately it seems that there is no support for checking a path if it's a (local) directory.
The 'isdirectory' is just path-string handling
No guarantee that it doesn't break other stuff, but I did some testing and it seems quite ok.
('edit' already contains a lot of automagic stuff.)
However, this patch even doesn't break the 'auto-checkout' feature.
@see
vc.e - window_edit2() [line 3211 for Slick v11.01]static int window_edit2(_str filename)
{
typeless status=edit_file(filename);
if (! status) {
int was_hidden=p_buf_flags&VSBUFFLAG_HIDDEN;
p_buf_flags=p_buf_flags&~(VSBUFFLAG_HIDDEN|VSBUFFLAG_DELETE_BUFFER_ON_CLOSE);
if (was_hidden) {
call_list('_cbmdibuffer_unhidden_');
}
} else {
// HS2: finally assume a dir and try to change to it
status = cd (isdirectory(just_name(filename),'1'), '');
}
return(status);
}
If you like it, make a backup of 'vc.e', apply the patch, 'load' and enjoy.
And this file wiill be overwritten installing the next Slick release...
HS2