aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-26 20:59:28 +0200
committerGitHub <noreply@github.com>2019-05-26 20:59:28 +0200
commit1ca84897a0d65b0afbb2141f12a2061dabeb6b09 (patch)
tree01e8232cc8d79cf7dc03d66459d4d0bcaa4b077c /src/nvim/search.c
parent0bbaef8a99af8733cc64ff29858e17c19ed30b3c (diff)
parent80f40f0203f5af167f8c77bf6b9f22a4d1abd6da (diff)
downloadrneovim-1ca84897a0d65b0afbb2141f12a2061dabeb6b09.tar.gz
rneovim-1ca84897a0d65b0afbb2141f12a2061dabeb6b09.tar.bz2
rneovim-1ca84897a0d65b0afbb2141f12a2061dabeb6b09.zip
Merge #10059 from jerdna-regeiz/vim-8.1.0614
vim-patch:8.1.0614,8.1.0632,8.1.0644,8.1.0658,8.1.0660,8.1.0669,8.1.0673,8.1.0679,8.1.0697,8.1.0701,8.1.0702,8.1.0709,8.1.0717,8.1.0750,8.1.0767,8.1.0772,8.1.0039
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 3bd222b3de..e64233985b 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -87,13 +87,13 @@ static struct spat spats[2] =
static int last_idx = 0; /* index in spats[] for RE_LAST */
-static char_u lastc[2] = {NUL, NUL}; /* last character searched for */
-static int lastcdir = FORWARD; /* last direction of character search */
-static int last_t_cmd = TRUE; /* last search t_cmd */
+static char_u lastc[2] = { NUL, NUL }; // last character searched for
+static int lastcdir = FORWARD; // last direction of character search
+static int last_t_cmd = true; // last search t_cmd
static char_u lastc_bytes[MB_MAXBYTES + 1];
-static int lastc_bytelen = 1; /* >1 for multi-byte char */
+static int lastc_bytelen = 1; // >1 for multi-byte char
-/* copy of spats[], for keeping the search patterns while executing autocmds */
+// copy of spats[], for keeping the search patterns while executing autocmds
static struct spat saved_spats[2];
// copy of spats[RE_SEARCH], for keeping the search patterns while incremental
// searching
@@ -101,8 +101,8 @@ static struct spat saved_last_search_spat;
static int saved_last_idx = 0;
static int saved_no_hlsearch = 0;
-static char_u *mr_pattern = NULL; /* pattern used by search_regcomp() */
-static int mr_pattern_alloced = FALSE; /* mr_pattern was allocated */
+static char_u *mr_pattern = NULL; // pattern used by search_regcomp()
+static int mr_pattern_alloced = false; // mr_pattern was allocated
/*
* Type used by find_pattern_in_path() to remember which included files have