From 0b72e23bf13ade1e76d11eae6990014098b3928d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 26 Aug 2022 22:37:20 +0800 Subject: vim-patch:8.2.0674: some source files are too big (#19959) Problem: Some source files are too big. Solution: Move text formatting functions to a new file. (Yegappan Lakshmanan, closes vim/vim#6021) https://github.com/vim/vim/commit/11abd095210fc84e5dcee87b9baed86061caefe4 Cherry-pick set_can_cindent() from patch 8.1.2062. Cherry-pick global old_indent from patch 8.2.2127. --- src/nvim/textformat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/nvim/textformat.h (limited to 'src/nvim/textformat.h') diff --git a/src/nvim/textformat.h b/src/nvim/textformat.h new file mode 100644 index 0000000000..9d8327e6eb --- /dev/null +++ b/src/nvim/textformat.h @@ -0,0 +1,12 @@ +#ifndef NVIM_TEXTFORMAT_H +#define NVIM_TEXTFORMAT_H + +#include + +#include "nvim/normal.h" // for oparg_T +#include "nvim/pos.h" // for linenr_T + +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "textformat.h.generated.h" +#endif +#endif // NVIM_TEXTFORMAT_H -- cgit From 814c173b9d5182ca221b7c3c370cb453ce3526ed Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 27 Aug 2022 09:58:25 +0800 Subject: vim-patch:8.2.0660: the search.c file is a bit big (#19963) Problem: The search.c file is a bit big. Solution: Split off the text object code to a separate file. (Yegappan Lakshmanan, closes vim/vim#6007) https://github.com/vim/vim/commit/ed8ce057b7a2fcd89b5f55680ae8f85d62a992a5 --- src/nvim/textformat.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/nvim/textformat.h') diff --git a/src/nvim/textformat.h b/src/nvim/textformat.h index 9d8327e6eb..3c918a028b 100644 --- a/src/nvim/textformat.h +++ b/src/nvim/textformat.h @@ -1,8 +1,6 @@ #ifndef NVIM_TEXTFORMAT_H #define NVIM_TEXTFORMAT_H -#include - #include "nvim/normal.h" // for oparg_T #include "nvim/pos.h" // for linenr_T -- cgit