comparison src/globals.h @ 23505:bb29b09902d5 v8.2.2295

patch 8.2.2295: incsearch does not detect empty pattern properly Commit: https://github.com/vim/vim/commit/d93a7fc1a98a58f8101ee780d4735079ad99ae35 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 4 12:42:13 2021 +0100 patch 8.2.2295: incsearch does not detect empty pattern properly Problem: Incsearch does not detect empty pattern properly. Solution: Return magic state when skipping over a pattern. (Christian Brabandt, closes #7612, closes #6420)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Jan 2021 12:45:05 +0100
parents 9a5f12b36273
children 2322b643e329
comparison
equal deleted inserted replaced
23504:25d5c354a83e 23505:bb29b09902d5
1943 #endif 1943 #endif
1944 1944
1945 #define FOR_ALL_LIST_ITEMS(l, li) \ 1945 #define FOR_ALL_LIST_ITEMS(l, li) \
1946 for ((li) = (l)->lv_first; (li) != NULL; (li) = (li)->li_next) 1946 for ((li) = (l)->lv_first; (li) != NULL; (li) = (li)->li_next)
1947 1947
1948 // While executing a regexp and set to MAGIC_ON or MAGIC_OFF this overrules 1948 // While executing a regexp and set to OPTION_MAGIC_ON or OPTION_MAGIC_OFF this
1949 // p_magic. Otherwise set to MAGIC_NOT_SET. 1949 // overrules p_magic. Otherwise set to OPTION_MAGIC_NOT_SET.
1950 1950 EXTERN optmagic_T magic_overruled INIT(= OPTION_MAGIC_NOT_SET);
1951 EXTERN magic_T magic_overruled INIT(= MAGIC_NOT_SET);