diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-03-13 03:29:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 10:29:11 +0800 |
commit | 2daf0b37dbfe54a4510c1033531dbaefd168c387 (patch) | |
tree | 8f0c1f7ea449f6d38817398244852e458bcc79cd /src/nvim/optionstr.c | |
parent | 673d2b52fa4335aa083c52e6686f0728e25b8ebd (diff) | |
download | rneovim-2daf0b37dbfe54a4510c1033531dbaefd168c387.tar.gz rneovim-2daf0b37dbfe54a4510c1033531dbaefd168c387.tar.bz2 rneovim-2daf0b37dbfe54a4510c1033531dbaefd168c387.zip |
feat(options)!: deprecate paste, remove pastetoggle (#22647)
we cannot remove 'paste'. It is very common in plugins and configs.
'pastetoggle' can and should be removed though, it's a total waste of everyone's time because it generates bug reports and doesn't work well, and is useless because bracketed-paste works better.
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 5127bb2097..cba95377a2 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -1306,22 +1306,6 @@ static void did_set_foldcolumn(char **varp, char **errmsg) } } -static void did_set_pastetoggle(void) -{ - // 'pastetoggle': translate key codes like in a mapping - if (*p_pt) { - char *p = NULL; - (void)replace_termcodes(p_pt, - strlen(p_pt), - &p, REPTERM_FROM_PART | REPTERM_DO_LT, NULL, - CPO_TO_CPO_FLAGS); - if (p != NULL) { - free_string_option(p_pt); - p_pt = p; - } - } -} - static void did_set_backspace(char **errmsg) { if (ascii_isdigit(*p_bs)) { @@ -1778,8 +1762,6 @@ static char *did_set_string_option_for(buf_T *buf, win_T *win, int opt_idx, char did_set_opt_strings(*varp, p_sloc_values, false, &errmsg); } else if (gvarp == &win->w_allbuf_opt.wo_fdc) { // 'foldcolumn' did_set_foldcolumn(varp, &errmsg); - } else if (varp == &p_pt) { // 'pastetoggle' - did_set_pastetoggle(); } else if (varp == &p_bs) { // 'backspace' did_set_backspace(&errmsg); } else if (varp == &p_bo) { |