mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
Add termpastefilter option
Change to specify a character to be filtered as an option when pasting on the terminal.
This commit is contained in:
@@ -1942,6 +1942,7 @@ static void didset_options(void)
|
||||
(void)opt_strings_flags(p_dy, p_dy_values, &dy_flags, true);
|
||||
(void)opt_strings_flags(p_rdb, p_rdb_values, &rdb_flags, true);
|
||||
(void)opt_strings_flags(p_tc, p_tc_values, &tc_flags, false);
|
||||
(void)opt_strings_flags(p_tpf, p_tpf_values, &tpf_flags, true);
|
||||
(void)opt_strings_flags(p_ve, p_ve_values, &ve_flags, true);
|
||||
(void)opt_strings_flags(p_wop, p_wop_values, &wop_flags, true);
|
||||
(void)opt_strings_flags(p_jop, p_jop_values, &jop_flags, true);
|
||||
@@ -3077,6 +3078,10 @@ ambw_end:
|
||||
if (!parse_winhl_opt(curwin)) {
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
} else if (varp == &p_tpf) {
|
||||
if (opt_strings_flags(p_tpf, p_tpf_values, &tpf_flags, true) != OK) {
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
} else {
|
||||
// Options that are a list of flags.
|
||||
p = NULL;
|
||||
|
Reference in New Issue
Block a user