aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-04-20 12:31:03 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-05-09 06:37:01 +0600
commite498f265f46355ab782bfd87b6c85467da2845e3 (patch)
tree3f75a0552d0d4a9edbd1ffdd74f4b84b775b182b /src/nvim/macros.h
parentf8173df4d7ecec239629921736340d3f4d1dcfd4 (diff)
downloadrneovim-e498f265f46355ab782bfd87b6c85467da2845e3.tar.gz
rneovim-e498f265f46355ab782bfd87b6c85467da2845e3.tar.bz2
rneovim-e498f265f46355ab782bfd87b6c85467da2845e3.zip
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) https://github.com/vim/vim/commit/e8f5ec0d30b629d7166f0ad03434065d8bc822df 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.
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 303722b4a8..eb9357d027 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -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