mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
Incsubsitution feature
Originally implemented by * Clement0 * DesbyP * aym7 * Adrey06 * Robinhola in #4811. Major reworkings and bug fixes by * bfredl Most tests suggested by ZyX-l, suggestions for improvements by oni-link.
This commit is contained in:
@@ -288,6 +288,7 @@ static char *(p_fdm_values[]) = { "manual", "expr", "marker", "indent",
|
||||
static char *(p_fcl_values[]) = { "all", NULL };
|
||||
static char *(p_cot_values[]) = { "menu", "menuone", "longest", "preview",
|
||||
"noinsert", "noselect", NULL };
|
||||
static char *(p_ics_values[]) = { "nosplit", "split", NULL };
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "option.c.generated.h"
|
||||
@@ -3110,9 +3111,13 @@ did_set_string_option (
|
||||
else if (gvarp == &p_cino) {
|
||||
/* TODO: recognize errors */
|
||||
parse_cino(curbuf);
|
||||
}
|
||||
/* Options that are a list of flags. */
|
||||
else {
|
||||
// incsubstitute
|
||||
} else if (varp == &p_ics) {
|
||||
if (check_opt_strings(p_ics, p_ics_values, false) != OK) {
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
// Options that are a list of flags.
|
||||
} else {
|
||||
p = NULL;
|
||||
if (varp == &p_ww)
|
||||
p = (char_u *)WW_ALL;
|
||||
|
Reference in New Issue
Block a user