diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-01 17:28:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-01 17:28:35 +0200 |
commit | e8f5ec0d30b629d7166f0ad03434065d8bc822df (patch) | |
tree | 47f18763d1948a5ceb7f421af8f904ca0db5d997 /src/macros.h | |
parent | 950587242cad52d067a15f0f0c83528a28f75731 (diff) | |
download | vim-git-e8f5ec0d30b629d7166f0ad03434065d8bc822df.tar.gz |
patch 8.2.0877: cannot get the search statisticsv8.2.0877
Problem: Cannot get the search statistics.
Solution: Add the searchcount() function. (Fujiwara Takuya, closes #4446)
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h index 2ac705d4a..16421d261 100644 --- a/src/macros.h +++ b/src/macros.h @@ -33,6 +33,7 @@ : (a)->coladd < (b)->coladd) #define EQUAL_POS(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col) && ((a).coladd == (b).coladd)) #define CLEAR_POS(a) do {(a)->lnum = 0; (a)->col = 0; (a)->coladd = 0;} while (0) +#define EMPTY_POS(a) ((a).lnum == 0 && (a).col == 0 && (a).coladd == 0) #define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b)) |