Yegappan wrote:
> The following vim9 script generates a E1030 error:
> ============================================
> vim9script
> var bnr = bufnr()
> bnr->setbufline(1, "Hello")
> ============================================
>
> The following fragment works properly:
> ============================================
> vim9script
> var bnr = bufnr()
> setbufline(bnr, 1, "Hello")
> ============================================
The base is passed as the third argument, the text. This works:
"Hello"->setbufline(bnr, 1)
The idea is that you somehow generate the text with a series of function
calls, then store it in a buffer line.
--
How To Keep A Healthy Level Of Insanity:
1. At lunch time, sit in your parked car with sunglasses on and point
a hair dryer at passing cars. See if they slow down.
/// 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202012251254.0BPCsNBn3497506%40masaka.moolenaar.net.