aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-27 11:26:47 +0800
committerGitHub <noreply@github.com>2022-08-27 11:26:47 +0800
commit523600ea6cc1edb7b4d116fdf70437a6b7f226d1 (patch)
tree2a1bf551c23ca859cab41022b621b3ad7e3c75ce /src/nvim/eval.c
parent814c173b9d5182ca221b7c3c370cb453ce3526ed (diff)
downloadrneovim-523600ea6cc1edb7b4d116fdf70437a6b7f226d1.tar.gz
rneovim-523600ea6cc1edb7b4d116fdf70437a6b7f226d1.tar.bz2
rneovim-523600ea6cc1edb7b4d116fdf70437a6b7f226d1.zip
vim-patch:8.2.1269: language and locale code spread out (#19964)
Problem: Language and locale code spread out. Solution: Move relevant code to src/locale.c. (Yegappan Lakshmanan, closes vim/vim#6509) https://github.com/vim/vim/commit/054f14bbe58fece17f1a74ca63f0b37518f0b4de Also remove redundant <locale.h> includes.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 848b1dd2cd..ecac7e75ae 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -6,12 +6,6 @@
#include <math.h>
#include <stdlib.h>
-#include "auto/config.h"
-
-#ifdef HAVE_LOCALE_H
-# include <locale.h>
-#endif
-
#include "nvim/ascii.h"
#include "nvim/autocmd.h"
#include "nvim/buffer.h"
@@ -36,6 +30,7 @@
#include "nvim/ex_session.h"
#include "nvim/getchar.h"
#include "nvim/highlight_group.h"
+#include "nvim/locale.h"
#include "nvim/lua/executor.h"
#include "nvim/mark.h"
#include "nvim/memline.h"