vim-patch:8.2.0877: cannot get the search statistics

Problem:    Cannot get the search statistics.
Solution:   Add the searchcount() function. (Fujiwara Takuya, closes vim/vim#4446)
e8f5ec0d30

Additional changes:
- Tests weren't passing because the test ran assuming the cursor was at
  start of buffer but append() left the cursor at end of buffer .
  So cursor is moved to start of buffer after append.
- searchcount() added to list of builtin functions.
This commit is contained in:
shadmansaleh
2021-04-20 12:31:03 +06:00
parent f8173df4d7
commit e498f265f4
6 changed files with 493 additions and 128 deletions

View File

@@ -238,5 +238,6 @@
# define PRAGMA_DIAG_POP
#endif
#define EMPTY_POS(a) ((a).lnum == 0 && (a).col == 0 && (a).coladd == 0)
#endif // NVIM_MACROS_H