Jan Minar wrote:

> On Fri, Jul 18, 2008 at 10:46 AM, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> > I'm missing the part where tutor.vim sets the temp file name.  When
> > tutor.vim does this I suppose all references to $TUTORCOPY can be
> > removed, I don't understand why you keep it and make it empty.
> 
> Hi, Bram!
> 
> Somehow the part of the patch with diff to tutor.vim got lost in the
> process.  Fixed patch attached.  I have also found an unrelated bug in
> tutor.vim, which caused the adding of a '.utf-8' extension to fail --
> please see the patch for details.
> 
> As to the question why I still used $TUTORCOPY: I wanted to change as
> little as possible:
> 
> (1) If tutor.vim finds $TUTORCOPY empty, it will set it to the file
> name it finds itself, and the user editing the Tutorial will still see
> $TUTORCOPY set to the name of the file they're editing.
> 
> (2) If tutor.vim finds $TUTORCOPY not empty, it will revert to the old
> behaviour and simply make a copy of the tutorial and quit -- I wanted
> the runtime to stay compatible with older or perhaps custom versions
> of vimtutor(1).
> 
> Maybe these precautions were unnecessary?

I'll look into these changes later.  I'll include the fix for adding
".utf-8" right away.

-- 
            ### Hiroshima 45, Chernobyl 86, Windows 95 ###

 /// 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    ///

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

Raspunde prin e-mail lui