diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.lua | 8 | ||||
-rw-r--r-- | src/nvim/log.c | 1 | ||||
-rw-r--r-- | src/nvim/options.lua | 12 |
3 files changed, 11 insertions, 10 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index b580bd8218..50aaf9e03b 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -54,7 +54,7 @@ M.funcs = { ]=], name = 'abs', - params = { { 'expr', 'any' } }, + params = { { 'expr', 'number' } }, signature = 'abs({expr})', returns = 'number', }, @@ -77,7 +77,7 @@ M.funcs = { ]=], float_func = 'acos', name = 'acos', - params = { { 'expr', 'any' } }, + params = { { 'expr', 'number' } }, returns = 'number', signature = 'acos({expr})', }, @@ -114,7 +114,7 @@ M.funcs = { < ]=], name = 'and', - params = { { 'expr', 'any' }, { 'expr', 'any' } }, + params = { { 'expr', 'number' }, { 'expr', 'number' } }, returns = 'integer', signature = 'and({expr}, {expr})', }, @@ -152,7 +152,7 @@ M.funcs = { ]=], name = 'append', - params = { { 'lnum', 'integer' }, { 'text', 'any' } }, + params = { { 'lnum', 'integer' }, { 'text', 'string|string[]' } }, returns = '0|1', signature = 'append({lnum}, {text})', }, diff --git a/src/nvim/log.c b/src/nvim/log.c index 74984fa19f..ef5e21aa0a 100644 --- a/src/nvim/log.c +++ b/src/nvim/log.c @@ -258,6 +258,7 @@ void log_callstack_to_file(FILE *log_file, const char *const func_name, const in do_log_to_file(log_file, LOGLVL_DBG, NULL, func_name, line_num, true, "trace:"); FILE *fp = popen(cmdbuf, "r"); + assert(fp); char linebuf[IOSIZE]; while (fgets(linebuf, sizeof(linebuf) - 1, fp) != NULL) { fprintf(log_file, " %s", linebuf); diff --git a/src/nvim/options.lua b/src/nvim/options.lua index db04de1e3a..f20933d172 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1,3 +1,5 @@ +-- vim: tw=80 + --- @class vim.option_meta --- @field full_name string --- @field desc? string @@ -1229,11 +1231,10 @@ return { used. The command-line will cover the last line of the screen when shown. - WARNING: `cmdheight=0` is considered experimental. Expect some - unwanted behaviour. Some 'shortmess' flags and similar - mechanism might fail to take effect, causing unwanted hit-enter - prompts. Some informative messages, both from Nvim itself and - plugins, will not be displayed. + WARNING: `cmdheight=0` is EXPERIMENTAL. Expect some unwanted behaviour. + Some 'shortmess' flags and similar mechanism might fail to take effect, + causing unwanted hit-enter prompts. Some informative messages, both + from Nvim itself and plugins, will not be displayed. ]=], full_name = 'cmdheight', redraw = { 'all_windows' }, @@ -8096,7 +8097,6 @@ return { cb = 'did_set_statuscolumn', defaults = { if_true = '' }, desc = [=[ - EXPERIMENTAL When non-empty, this option determines the content of the area to the side of a window, normally containing the fold, sign and number columns. The format of this option is like that of 'statusline'. |