aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-04-13 12:39:05 +0200
committerGitHub <noreply@github.com>2023-04-13 12:39:05 +0200
commit231e1988ed788caa6b15817c63e94f38cd8ac75c (patch)
tree19075fb970fe69dd7cc0a146c4a2db1a33fe02f5 /src/nvim/ex_docmd.c
parent99c1010aa740b76df341a756231e99d0116fc3be (diff)
parente4a136f713753e6ace97f419be562567f1ce535f (diff)
downloadrneovim-231e1988ed788caa6b15817c63e94f38cd8ac75c.tar.gz
rneovim-231e1988ed788caa6b15817c63e94f38cd8ac75c.tar.bz2
rneovim-231e1988ed788caa6b15817c63e94f38cd8ac75c.zip
Merge pull request #23054 from bfredl/nobehave
feat(ex_cmds)!: remove :behave
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 699c1da3a7..fbdb1bc2d7 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -7058,24 +7058,6 @@ void dialog_msg(char *buff, char *format, char *fname)
vim_snprintf(buff, DIALOG_MSG_SIZE, format, fname);
}
-/// ":behave {mswin,xterm}"
-static void ex_behave(exarg_T *eap)
-{
- if (strcmp(eap->arg, "mswin") == 0) {
- set_option_value_give_err("selection", 0L, "exclusive", 0);
- set_option_value_give_err("selectmode", 0L, "mouse,key", 0);
- set_option_value_give_err("mousemodel", 0L, "popup", 0);
- set_option_value_give_err("keymodel", 0L, "startsel,stopsel", 0);
- } else if (strcmp(eap->arg, "xterm") == 0) {
- set_option_value_give_err("selection", 0L, "inclusive", 0);
- set_option_value_give_err("selectmode", 0L, "", 0);
- set_option_value_give_err("mousemodel", 0L, "extend", 0);
- set_option_value_give_err("keymodel", 0L, "", 0);
- } else {
- semsg(_(e_invarg2), eap->arg);
- }
-}
-
static TriState filetype_detect = kNone;
static TriState filetype_plugin = kNone;
static TriState filetype_indent = kNone;