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)
054f14bbe5

Also remove redundant <locale.h> includes.
This commit is contained in:
zeertzjq
2022-08-27 11:26:47 +08:00
committed by GitHub
parent 814c173b9d
commit 523600ea6c
10 changed files with 392 additions and 369 deletions

View File

@@ -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"