aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/runtime.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-27 10:40:30 -0800
committerGitHub <noreply@github.com>2024-01-27 10:40:30 -0800
commit2cd76a758b4511748d9482e5af58162a608516b4 (patch)
tree78b62d3994171c769eb17061d097ec821d5504e3 /src/nvim/runtime.c
parent17b298b7c8a29ac3d54ea7adfa0e2ea09528e200 (diff)
downloadrneovim-2cd76a758b4511748d9482e5af58162a608516b4.tar.gz
rneovim-2cd76a758b4511748d9482e5af58162a608516b4.tar.bz2
rneovim-2cd76a758b4511748d9482e5af58162a608516b4.zip
docs(lua): update ":{range}lua" docs + error message #27231
- `:lua (no file)` is misleading because `:lua` never takes a file arg, unlike `:source`. - Update various related docs.
Diffstat (limited to 'src/nvim/runtime.c')
-rw-r--r--src/nvim/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c
index 77a22b6fd1..98e9d6c9e6 100644
--- a/src/nvim/runtime.c
+++ b/src/nvim/runtime.c
@@ -2014,7 +2014,7 @@ void cmd_source_buffer(const exarg_T *const eap, bool ex_lua)
};
if (ex_lua || strequal(curbuf->b_p_ft, "lua")
|| (curbuf->b_fname && path_with_extension(curbuf->b_fname, "lua"))) {
- char *name = ex_lua ? ":lua (no file)" : ":source (no file)";
+ char *name = ex_lua ? ":{range}lua" : ":source (no file)";
nlua_source_using_linegetter(get_str_line, (void *)&cookie, name);
} else {
source_using_linegetter((void *)&cookie, get_str_line, ":source (no file)");