On 26/02/09 10:29, Andreas Bernauer wrote:
> [email protected] wrote on vim_use:
>> It seems that if lcd is used, the paths in the session files are not
>> set correctly anymore.
>> I use 7.2.108 (gentoo-linux) and have not had this behaviour in 7.2.
>>
>> Try this to reproduce:
>>
>> * rm ~/.viminfo ~/.vimrc
>> * vim --noplugin
>> * :ed ~/subfolder/test.txt
>> * :lcd ~/subfolder/.
>> * :mks! ~/sess-test.vim
>> * :qa
>> * vim --noplugin -S sess-test.vim
>>
>> Result: vim does not open ~/subfolder/test.txt but test.txt (which
>> does not exist).
>> This does not happen if lcd (see above) is not called.
>
> It looks like this bug was introduced with 7.2.055.
> The attached patch against 7.2.127 seems to fix this.
>

Moving the thread back to vim_dev (or trying to). Let's hope vim_use 
won't clobber the Reply-To.

The patch doesn't follow Bram's conventions in terms of directory 
choice: the common parent of src/, runtime/, etc. ought to be the 
"current dir" of the diff so that the patch can be applied with -p0 when 
running the patch utility at that level. If necessary, other source 
trees can be referenced with "../dirname/src/filename.c" or similar. To 
make sure the patch applies cleanly even on other people's computers, I 
use one of the following depending on circumstances:
        diff -c src/filename.c ../vim72/src/filename.c > patches/filename.c.diff
        diff -c runtime/doc/filename.txt runtime/doc/filename.txt.new > 
patches/filename.txt.diff

- I believe that the above will apply cleanly, at least with GNU patch.
- The advantage of the ".diff" extension is that when sending as 
attachment, my mailer recognises it and sets an appropriate MIME type.


Best regards,
Tony.
-- 
First Law of Procrastination:
        Procrastination shortens the job and places the responsibility
for its termination on someone else (i.e., the authority who imposed
the deadline).

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui