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)
ed8ce057b7
This commit is contained in:
zeertzjq
2022-08-27 09:58:25 +08:00
committed by GitHub
parent 58b29e344c
commit 814c173b9d
8 changed files with 1761 additions and 1805 deletions

View File

@@ -57,6 +57,7 @@
#include "nvim/syntax.h"
#include "nvim/terminal.h"
#include "nvim/textformat.h"
#include "nvim/textobject.h"
#include "nvim/ui.h"
#include "nvim/undo.h"
#include "nvim/vim.h"

View File

@@ -33,9 +33,9 @@
#include "nvim/os/time.h"
#include "nvim/path.h"
#include "nvim/quickfix.h"
#include "nvim/search.h"
#include "nvim/sign.h"
#include "nvim/strings.h"
#include "nvim/textobject.h"
#include "nvim/ui.h"
#include "nvim/vim.h"

View File

@@ -66,6 +66,7 @@
#include "nvim/syntax.h"
#include "nvim/tag.h"
#include "nvim/textformat.h"
#include "nvim/textobject.h"
#include "nvim/ui.h"
#include "nvim/undo.h"
#include "nvim/vim.h"

File diff suppressed because it is too large Load Diff

View File

@@ -5,6 +5,7 @@
#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/change.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
@@ -15,14 +16,18 @@
#include "nvim/globals.h"
#include "nvim/indent.h"
#include "nvim/indent_c.h"
#include "nvim/mbyte.h"
#include "nvim/memline.h"
#include "nvim/move.h"
#include "nvim/normal.h"
#include "nvim/ops.h"
#include "nvim/option.h"
#include "nvim/os/input.h"
#include "nvim/pos.h"
#include "nvim/search.h"
#include "nvim/strings.h"
#include "nvim/textformat.h"
#include "nvim/textobject.h"
#include "nvim/undo.h"
#include "nvim/vim.h"
#include "nvim/window.h"

View File

@@ -1,8 +1,6 @@
#ifndef NVIM_TEXTFORMAT_H
#define NVIM_TEXTFORMAT_H
#include <stdbool.h>
#include "nvim/normal.h" // for oparg_T
#include "nvim/pos.h" // for linenr_T

1742
src/nvim/textobject.c Normal file

File diff suppressed because it is too large Load Diff

11
src/nvim/textobject.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef NVIM_TEXTOBJECT_H
#define NVIM_TEXTOBJECT_H
#include "nvim/normal.h" // for oparg_T
#include "nvim/pos.h" // for linenr_T
#include "nvim/vim.h" // for Direction
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "textobject.h.generated.h"
#endif
#endif // NVIM_TEXTOBJECT_H