1
0
forked from aniani/vim

patch 8.2.0877: cannot get the search statistics

Problem:    Cannot get the search statistics.
Solution:   Add the searchcount() function. (Fujiwara Takuya, closes #4446)
This commit is contained in:
Bram Moolenaar
2020-06-01 17:28:35 +02:00
parent 950587242c
commit e8f5ec0d30
7 changed files with 495 additions and 99 deletions

View File

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