James Vega wrote:
> When do_source() is called with a FIFO (or other file types for which > lseek(2) errors), the first 3 bytes of the file are discarded due to the > BOM check. The attached patch reads the entire first line to do the BOM > check and then passes it on to do_cmdline later on. > > A similar problem will occur in get_one_sourceline() if the line doesn't > end on a '\n' and has a '\r' (lines 3478-3492 in the patched code, > 3475-3489 in 7.2.084). I wasn't sure how to approach this occurrence. > > This came up on the #vim IRC channel yesterday as a user was trying to > automate running with Vim with generated text for the vimrc. A simple, > although not very useful, example making use of bash/zsh's process > substitution would be: > > vim -u <(cat ~/.vimrc) Thanks. I'll put it in the todo list. -- hundred-and-one symptoms of being an internet addict: 3. Your bookmark takes 15 minutes to scroll from top to bottom. /// Bram Moolenaar -- b...@moolenaar.net -- 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 -~----------~----~----~----~------~----~------~--~---