Hi,

On Sun, Apr 7, 2019 at 6:06 PM Yee Cheng Chin <[email protected]> wrote:
>
> I do like the idea of a tab-local cwd. Few comments though:
>
> I found a bug in the current implementation. Do the following to reproduce 
> the bug:
>
> tcd foo
> lcd bar
> mksession session.vim
> source session.vim
> echo getcwd()
>
> This script should output "bar", but it shows "foo" instead. Note that this
> only happens for the first split of a tab. It works properly for the other
> splits as far as I can tell.
>

Thanks for trying out the patch and reporting the issue. I am able to
reproduce it. I will send out an updated patch with a fix for this.

>
> If my current window already as a local window dir (:lcd), then I do :tcd, it
> overrides the current localdir. I guess this makes sense since a :cd would
> override both :tcd and :lcd anyway so it's consistent but just wanted to
> point that out.
>

Yes. When you invoke the ":tcd" command, the working directory of
the current window is also changed. This is similar to how the ":cd"
command works (as you pointed out).

- Yegappan

>
> I'm wondering if the logical extension of this would balloon to tab vs
> window-local settings (e.g. tab versions of :setlocal) and other related
> requests. But maybe that's for another day.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui