Hong Xu wrote:
> On 2011/3/26 15:48, H Xu wrote:
> > Hello,
> >
> > To reproduce:
> > :!echo -n 'Hello' >temp.txt
> > :echo readfile('temp.txt')
> >
> > Then an empty list is displayed rather than the content of this file.
> >
> > The attached patch fixes this problem.
> >
> > Regards,
> > Hong Xu
> > 2011/3/26
> >
>
> Hello,
>
> The last patch has some problem. Use this patch instead.
>
> The solution is, when readfile() in text mode, if we reach the end of
> the file and we still didn't find a NL, then add an NL to the end of the
> buffer.
Thanks! I'll add it to my todo list.
--
FATAL ERROR! SYSTEM HALTED! - Press any key to continue doing nothing.
/// 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