aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cmdexpand.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-10-15 18:48:22 +0200
committerGitHub <noreply@github.com>2023-10-15 18:48:22 +0200
commit0a3505eb9df8d57a9a0bcecf02bb3dda1c8edd29 (patch)
tree36026ecf693695d8b912093f727b4622ae1fffe3 /src/nvim/cmdexpand.c
parent0818d655288ebd70de728b13fabcfd01a0e2e2ec (diff)
parent3a44db510b1661eb92689e328d5191acfcb95433 (diff)
downloadrneovim-0a3505eb9df8d57a9a0bcecf02bb3dda1c8edd29.tar.gz
rneovim-0a3505eb9df8d57a9a0bcecf02bb3dda1c8edd29.tar.bz2
rneovim-0a3505eb9df8d57a9a0bcecf02bb3dda1c8edd29.zip
Merge pull request #25602 from bfredl/have_no_ifdef
refactor(lang): reduce scope of HAVE_WORKING_LIBINTL #ifdefs
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r--src/nvim/cmdexpand.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c
index bf0aa54bdd..3cc9515fef 100644
--- a/src/nvim/cmdexpand.c
+++ b/src/nvim/cmdexpand.c
@@ -2130,10 +2130,9 @@ static const char *set_context_by_cmdname(const char *cmd, cmdidx_T cmdidx, expa
set_context_in_runtime_cmd(xp, arg);
break;
-#ifdef HAVE_WORKING_LIBINTL
case CMD_language:
return set_context_in_lang_cmd(xp, arg);
-#endif
+
case CMD_profile:
set_context_in_profile_cmd(xp, arg);
break;
@@ -2644,10 +2643,8 @@ static int ExpandOther(char *pat, expand_T *xp, regmatch_T *rmp, char ***matches
{ EXPAND_AUGROUP, expand_get_augroup_name, true, false },
{ EXPAND_SIGN, get_sign_name, true, true },
{ EXPAND_PROFILE, get_profile_name, true, true },
-#ifdef HAVE_WORKING_LIBINTL
{ EXPAND_LANGUAGE, get_lang_arg, true, false },
{ EXPAND_LOCALES, get_locales, true, false },
-#endif
{ EXPAND_ENV_VARS, get_env_name, true, true },
{ EXPAND_USER, get_users, true, false },
{ EXPAND_ARGLIST, get_arglist_name, true, false },