ZyX wrote:

> > I managed to make the test files work, guessing the missing characters.
> > 
> > The remark about get_tv_string_chk() remains.  Can you please look into
> > fixing that?
> 
> Since I have no idea what setreg(regname, [number]) may be used for
> the easiest fix is the one that just forbids using numbers.
> 
> Alternative approaches:
> 1. Second easiest to code: just vim_strsave() every string from
> get_tv_string_chk and free it afterwards.
> 2. Rather fast: use own buffer, if get_tv_string_buf_chk returned it
> then do vim_strsave(). Comes at a cost of doubling lstval size and one
> additional alloc per each number.
> 3. Use register appending each time number was found.
> 
> Approach used in patch: 2. Wanted to post both 0. and 2. approaches,
> but diffs for the 0. got screwed up and I mentioned this only after
> this happened.
> 
> Found another problem: setreg('z', []) returns E341 (tries to allocate
> zero bytes). Should probably be used to unset register/set it to an
> empty string.

Thanks.  Hopefully I have time to finisht the NUL/NL patches this
weekend.  The coming weeks I will not have much time.

-- 
The History of every major Galactic Civilization tends to pass through
three distinct and recognizable phases, those of Survival, Inquiry and
Sophistication, otherwise known as the How, Why and Where phases.
For instance, the first phase is characterized by the question 'How can
we eat?' the second by the question 'Why do we eat?' and the third by
the question 'Where shall we have lunch?'
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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