comparison 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
comparison
equal deleted inserted replaced
20646:ad14bd3f8c4f 20647:8a2b86a39ef4
31 : (a)->col != (b)->col \ 31 : (a)->col != (b)->col \
32 ? (a)->col < (b)->col \ 32 ? (a)->col < (b)->col \
33 : (a)->coladd < (b)->coladd) 33 : (a)->coladd < (b)->coladd)
34 #define EQUAL_POS(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col) && ((a).coladd == (b).coladd)) 34 #define EQUAL_POS(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col) && ((a).coladd == (b).coladd))
35 #define CLEAR_POS(a) do {(a)->lnum = 0; (a)->col = 0; (a)->coladd = 0;} while (0) 35 #define CLEAR_POS(a) do {(a)->lnum = 0; (a)->col = 0; (a)->coladd = 0;} while (0)
36 #define EMPTY_POS(a) ((a).lnum == 0 && (a).col == 0 && (a).coladd == 0)
36 37
37 #define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b)) 38 #define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b))
38 39
39 /* 40 /*
40 * VIM_ISWHITE() differs from isspace() because it doesn't include <CR> and 41 * VIM_ISWHITE() differs from isspace() because it doesn't include <CR> and