Sunday, January 16, 2022

Re: vim9 script lambda

This is found

   def <lambda>7(l: list<any>)
        Last set from D:\Logiciels\Vim\vimfiles\plugged\nv-helper.vim\autoload\helper.vim line 263
1        # echomsg 'OutCb' .. string(l)
2        # eval [][0]


Here in Red 

    def OutCb(l: list<any>) #2{{{
      # echomsg 'OutCb' .. string(l)
      # eval [][0]
    enddef #2}}}
 
    def ExitCb(l: list<any>) #2{{{
      # echomsg 'ExitCb' .. string(l)
          # sleep 1m
          # source += l
          # echomsg 'Exiting ' .. string(l) .. ' ' .. string(@z)
    enddef #2}}}

Le dimanche 16 janvier 2022 à 16:53:16 UTC+1, Bram Moolenaar a écrit :

Ni Va wrote:

> Using this simple vim9script imported from $MYVIMRC, I encounter a lambda
> error that I don't happen to find the origin.
> [image: Capture.PNG]

The code you included does not have a lambda definition. You can
probably find out where they were coming from with:

:verbose func <lambda>7

> *Code*
> com! -nargs=1 -bang -complete=dir Zip call MainHelper.ZipUpDir(<bang>
> '<args>')

This "<bang>" appears to be misplaced.

Otherwise, the lines have been split in the mail system, thus it's a it
difficult to reproduce anything.


--
You know you use Vim too much when you have this alias in your
~/.bashrc file: alias :e=/bin/vim (Eljay Love-Jensen)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/09554f69-31a2-4408-9fa4-b7ba385c56ecn%40googlegroups.com.

No comments:

Post a Comment