Mercurial > vim
comparison src/structs.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 | d2b1269c2c68 |
children | 27ca5534a408 |
comparison
equal
deleted
inserted
replaced
23504:25d5c354a83e | 23505:bb29b09902d5 |
---|---|
4319 | 4319 |
4320 // We have to guess how much a sequence of bytes may expand when converting | 4320 // We have to guess how much a sequence of bytes may expand when converting |
4321 // with iconv() to be able to allocate a buffer. | 4321 // with iconv() to be able to allocate a buffer. |
4322 #define ICONV_MULT 8 | 4322 #define ICONV_MULT 8 |
4323 | 4323 |
4324 // Used for "magic_overruled". | |
4324 typedef enum { | 4325 typedef enum { |
4325 MAGIC_NOT_SET, // p_magic not overruled | 4326 OPTION_MAGIC_NOT_SET, // p_magic not overruled |
4326 MAGIC_ON, // magic on inside regexp | 4327 OPTION_MAGIC_ON, // magic on inside regexp |
4327 MAGIC_OFF // magic off inside regexp | 4328 OPTION_MAGIC_OFF // magic off inside regexp |
4329 } optmagic_T; | |
4330 | |
4331 // Magicness of a pattern, used by regexp code. | |
4332 // The order and values matter: | |
4333 // magic <= MAGIC_OFF includes MAGIC_NONE | |
4334 // magic >= MAGIC_ON includes MAGIC_ALL | |
4335 typedef enum { | |
4336 MAGIC_NONE = 1, // "\V" very unmagic | |
4337 MAGIC_OFF = 2, // "\M" or 'magic' off | |
4338 MAGIC_ON = 3, // "\m" or 'magic' | |
4339 MAGIC_ALL = 4 // "\v" very magic | |
4328 } magic_T; | 4340 } magic_T; |