aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-08-16 15:16:19 -0400
committerGitHub <noreply@github.com>2017-08-16 15:16:19 -0400
commit6844ff756100a80fadf2818d35fbb2c5fe6cbaa4 (patch)
tree25d7f76d6b21711aa936eb21a6a6d120c94a3d61
parent370602a8f5bc396d52fe71678d709051894be615 (diff)
parent4cd2749b102864a3e194b136cc88f4846b412dfe (diff)
downloadrneovim-6844ff756100a80fadf2818d35fbb2c5fe6cbaa4.tar.gz
rneovim-6844ff756100a80fadf2818d35fbb2c5fe6cbaa4.tar.bz2
rneovim-6844ff756100a80fadf2818d35fbb2c5fe6cbaa4.zip
Merge pull request #7145 from ckelsel/vim-8.0.0174
vim-patch:8.0.0174
-rw-r--r--src/nvim/ex_cmds2.c25
-rw-r--r--src/nvim/version.c2
2 files changed, 16 insertions, 11 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 79882973b1..33fe30cd5a 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -3611,18 +3611,11 @@ void ex_language(exarg_T *eap)
static char_u **locales = NULL; // Array of all available locales
-static bool did_init_locales = false;
-/// Lazy initialization of all available locales.
-static void init_locales(void)
-{
- if (!did_init_locales) {
- did_init_locales = true;
- locales = find_locales();
- }
-}
+#ifndef WIN32
+static bool did_init_locales = false;
-// Return an array of strings for all available locales + NULL for the
+/// Return an array of strings for all available locales + NULL for the
/// last element. Return NULL in case of error.
static char_u **find_locales(void)
{
@@ -3654,6 +3647,18 @@ static char_u **find_locales(void)
((char_u **)locales_ga.ga_data)[locales_ga.ga_len] = NULL;
return (char_u **)locales_ga.ga_data;
}
+#endif
+
+/// Lazy initialization of all available locales.
+static void init_locales(void)
+{
+#ifndef WIN32
+ if (!did_init_locales) {
+ did_init_locales = true;
+ locales = find_locales();
+ }
+#endif
+}
# if defined(EXITFREE)
void free_locales(void)
diff --git a/src/nvim/version.c b/src/nvim/version.c
index bd90f28629..2a31b7d53d 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -778,7 +778,7 @@ static const int included_patches[] = {
177,
176,
// 175,
- // 174,
+ 174,
// 173 NA
172,
// 171,