aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/ex_getln.c4
-rw-r--r--test/functional/ui/cmdline_highlight_spec.lua12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 6d839f0aa4..5e216925df 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -2420,7 +2420,7 @@ static bool color_cmdline(const CmdlineInfo *const colored_ccline,
} else if (colored_ccline->cmdfirstc == ':') {
try_enter(&tstate);
err_errmsg = N_(
- "E5408: Unable to get Nvim_color_cmdline callback from g:: %s");
+ "E5408: Unable to get g:Nvim_color_cmdline callback: %s");
dgc_ret = tv_dict_get_callback(&globvardict, S_LEN("Nvim_color_cmdline"),
&color_cb);
tl_ret = try_leave(&tstate, &err);
@@ -2428,7 +2428,7 @@ static bool color_cmdline(const CmdlineInfo *const colored_ccline,
} else if (colored_ccline->cmdfirstc == '=') {
try_enter(&tstate);
err_errmsg = N_(
- "E5409: Unable to get Nvim_color_expr callback from g:: %s");
+ "E5409: Unable to get g:Nvim_color_expr callback: %s");
dgc_ret = tv_dict_get_callback(&globvardict, S_LEN("Nvim_color_expr"),
&color_cb);
tl_ret = try_leave(&tstate, &err);
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua
index 1d2a06b7f0..d87ce72599 100644
--- a/test/functional/ui/cmdline_highlight_spec.lua
+++ b/test/functional/ui/cmdline_highlight_spec.lua
@@ -854,9 +854,9 @@ describe('Ex commands coloring support', function()
{EOB:~ }|
{EOB:~ }|
: |
- {ERR:E5408: Unable to get Nvim_color_cmdline }|
- {ERR:callback from g:: Vim:E6000: Argument is}|
- {ERR: not a function or function name} |
+ {ERR:E5408: Unable to get g:Nvim_color_cmdlin}|
+ {ERR:e callback: Vim:E6000: Argument is not a}|
+ {ERR: function or function name} |
:#^ |
]])
end)
@@ -884,9 +884,9 @@ describe('Expressions coloring support', function()
{EOB:~ }|
{EOB:~ }|
= |
- {ERR:E5409: Unable to get Nvim_color_expr cal}|
- {ERR:lback from g:: Vim:E6000: Argument is no}|
- {ERR:t a function or function name} |
+ {ERR:E5409: Unable to get g:Nvim_color_expr c}|
+ {ERR:allback: Vim:E6000: Argument is not a fu}|
+ {ERR:nction or function name} |
=1^ |
]])
end)