Mercurial > vim
diff src/macros.h @ 20647:8a2b86a39ef4 v8.2.0877
patch 8.2.0877: cannot get the search statistics
Commit: https://github.com/vim/vim/commit/e8f5ec0d30b629d7166f0ad03434065d8bc822df
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 1 17:28:35 2020 +0200
patch 8.2.0877: cannot get the search statistics
Problem: Cannot get the search statistics.
Solution: Add the searchcount() function. (Fujiwara Takuya, closes https://github.com/vim/vim/issues/4446)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Jun 2020 17:30:04 +0200 |
parents | 4c317d8c1051 |
children | 097f5b5c907b |
line wrap: on
line diff
--- 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))