Yegappan wrote:
> I am getting E315: ml_get internal errors when running the following
> function:
>
> func Test()
> func CompleteFunc(findstart, base)
> if a:findstart == 1
> return col('.') - 1
> endif
> normal dd
> return ['a', 'b']
> endfunc
> new
> set completefunc=CompleteFunc
> call setline(1, ['', 'abcd', ''])
> 2d
> exe "normal 2G$a\<C-X>\<C-U>"
> endfunc
> call Test()
Best would be to forbid changing the text while evaluating
'completefunc'. I vaguely remember that this would break some plugin,
but I can't remember why. If that does happen, we could forbid deleting
and inserting text lines, there should be no reason for that during
completion. But that would require introducing a new mechanism.
--
It doesn't really matter what you are able to do if you don't do it.
(Bram Moolenaar)
/// 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/202004212001.03LK1rBD010338%40masaka.moolenaar.net.