Mercurial > vim
comparison src/evalfunc.c @ 28775:7fd3a9f05037 v8.2.4912
patch 8.2.4912: using execute() to define a lambda doesn't work
Commit: https://github.com/vim/vim/commit/a7583c42cd6b64fd276a5d7bb0db5ce7bfafa730
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 7 21:14:05 2022 +0100
patch 8.2.4912: using execute() to define a lambda doesn't work
Problem: Using execute() to define a lambda doesn't work. (Ernie Rael)
Solution: Put the getline function in evalarg. (closes https://github.com/vim/vim/issues/10375)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 May 2022 22:15:03 +0200 |
parents | d770568e6c98 |
children | 3754393e05bc |
comparison
equal
deleted
inserted
replaced
28774:238e79812a48 | 28775:7fd3a9f05037 |
---|---|
3866 /* | 3866 /* |
3867 * Get next line from a list. | 3867 * Get next line from a list. |
3868 * Called by do_cmdline() to get the next line. | 3868 * Called by do_cmdline() to get the next line. |
3869 * Returns allocated string, or NULL for end of function. | 3869 * Returns allocated string, or NULL for end of function. |
3870 */ | 3870 */ |
3871 static char_u * | 3871 char_u * |
3872 get_list_line( | 3872 get_list_line( |
3873 int c UNUSED, | 3873 int c UNUSED, |
3874 void *cookie, | 3874 void *cookie, |
3875 int indent UNUSED, | 3875 int indent UNUSED, |
3876 getline_opt_T options UNUSED) | 3876 getline_opt_T options UNUSED) |