diff options
author | erw7 <erw7.github@gmail.com> | 2021-02-04 14:56:42 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2021-02-04 15:20:05 +0900 |
commit | 4dc41c051615a10a9a3650abb91e76197136aedd (patch) | |
tree | 96eea159b63c2e7e1414f73f91e560cfc0bd650d | |
parent | 1e3fadb4196275f45009350b15fd39aef9d848c7 (diff) | |
download | rneovim-4dc41c051615a10a9a3650abb91e76197136aedd.tar.gz rneovim-4dc41c051615a10a9a3650abb91e76197136aedd.tar.bz2 rneovim-4dc41c051615a10a9a3650abb91e76197136aedd.zip |
Change default for tpf option
Change the default of tpf to the same value as the default of xterm's
disallowedPasteControls, because it may be a security risk.
-rw-r--r-- | runtime/doc/options.txt | 2 | ||||
-rw-r--r-- | src/nvim/options.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 903c99ec8f..98e2d50f1d 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6290,7 +6290,7 @@ A jump table for the options with a short description can be found at |Q_op|. Requires an ISO-8613-3 compatible terminal. *'termpastefilter'* *'tpf'* -'termpastefilter' 'tpf' string (default: "") +'termpastefilter' 'tpf' string (default: "BS,HT,ESC,DEL") global A comma separated list of options for specifying control characters to be removed from the text pasted into the terminal window. The diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 59f36b8479..fe108ef1cc 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -2826,7 +2826,7 @@ return { deny_duplicates=true, vim=true, varname='p_tpf', - defaults={if_true={vi="", vim=""}} + defaults={if_true={vi="", vim="BS,HT,ESC,DEL"}} }, { full_name='terse', |