Bob Hiestand wrote:
> On 4/11/07, Bob Hiestand <[EMAIL PROTECTED]> wrote:
> > The attached patch very simply implements the following from the todo:
> >
> > 7 There is no way to change directory and go back without changing the
> > local
> > and/or global directory. Add a way to find out if the current window
> > uses
> > a local directory. Add cdcmd() that returns ":cd" or ":lcd"?
> >
> > I personally would prefer the function be called something like
> > 'isdirlocal()'.
> >
> > I need this feature for my vcscommand.vim plugin, which changes
> > directory a fair amount, and can screw up the user environment if the
> > user makes use of :lcd.
>
> Does anyone have any feedback on this?
It was still in my pile of messages to read.
I agree that a different function would be more useful. I prefer
haslocaldir(). This would return zero when the current window uses the
global directory, one when it has a local directory. Later we could add
an argument for selecting the window.
If you agree, and nobody has something to say on this, can you change
your patch?
--
The only way the average employee can speak to an executive is by taking a
second job as a golf caddie.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///