Mercurial > vim
comparison src/structs.h @ 20725:f4455c71a8aa v8.2.0915
patch 8.2.0915: search() cannot skip over matches like searchpair() can
Commit: https://github.com/vim/vim/commit/adc17a5f9d207fd1623fd923457a46efc9214777
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 6 18:37:51 2020 +0200
patch 8.2.0915: search() cannot skip over matches like searchpair() can
Problem: Search() cannot skip over matches like searchpair() can.
Solution: Add an optional "skip" argument. (Christian Brabandt, closes https://github.com/vim/vim/issues/861)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Jun 2020 18:45:03 +0200 |
parents | d91b8d1e5198 |
children | ab27db64f1fb |
comparison
equal
deleted
inserted
replaced
20724:b4f459787045 | 20725:f4455c71a8aa |
---|---|
4128 int sa_timed_out; // set when timed out | 4128 int sa_timed_out; // set when timed out |
4129 #endif | 4129 #endif |
4130 int sa_wrapped; // search wrapped around | 4130 int sa_wrapped; // search wrapped around |
4131 } searchit_arg_T; | 4131 } searchit_arg_T; |
4132 | 4132 |
4133 /* | |
4134 * Function argument that can be a string, funcref or partial. | |
4135 * - declare: evalarg_T name; | |
4136 * - init: CLEAR_FIELD(name); | |
4137 * - set: evalarg_get(&argvars[3], &name); | |
4138 * - use: if (evalarg_valid(&name)) res = evalarg_call(&name); | |
4139 * - cleanup: evalarg_clean(&name); | |
4140 */ | |
4141 typedef struct | |
4142 { | |
4143 char_u eva_buf[NUMBUFLEN]; // buffer for get_tv_string_buf() | |
4144 char_u *eva_string; | |
4145 callback_T eva_callback; | |
4146 } evalarg_T; | |
4147 | |
4133 #define WRITEBUFSIZE 8192 // size of normal write buffer | 4148 #define WRITEBUFSIZE 8192 // size of normal write buffer |
4134 | 4149 |
4135 #define FIO_LATIN1 0x01 // convert Latin1 | 4150 #define FIO_LATIN1 0x01 // convert Latin1 |
4136 #define FIO_UTF8 0x02 // convert UTF-8 | 4151 #define FIO_UTF8 0x02 // convert UTF-8 |
4137 #define FIO_UCS2 0x04 // convert UCS-2 | 4152 #define FIO_UCS2 0x04 // convert UCS-2 |