> > I would think that we need an extra argument for the flag to not
> > position the cursor.  Then the first, existing argument can be used as
> > before.
> 
> @brammool The problem is that `getchar()` has the blocking behavior
> when the argument is skipped. I might be wrong, but I don't think you
> can skip the first argument (leaving it as `VAR_UNKNOWN`?) and just
> supply the second in vim script?

For that we have the value v:none.  Thus:

        c = getchar()

can be made to work the same as:

        c = getchar(v:none)

The implementation needs to be adjusted for this to work.

-- 
Giving a commit hash to refer to a patch is like giving longitude and
lattitude to refer to a city.

 /// Bram Moolenaar -- [email protected] -- 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_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/20220629134633.6D8EA1C1E32%40moolenaar.net.

Raspunde prin e-mail lui