summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-17 19:32:20 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-17 19:32:20 +0100
commit3c71aec6966da0ebefc451ded4fbc43f426654f3 (patch)
treeb284dbd59d9a59390ab9600a3df9a9361b7cde6a /src
parent109ef128bd6efc8e1fb91a2a51357fcb19897698 (diff)
patch 8.2.0125: :mode no longer works for any systemv8.2.0125
Problem: :mode no longer works for any system. Solution: Always give an error message.
Diffstat (limited to 'src')
-rw-r--r--src/ex_docmd.c2
-rw-r--r--src/os_amiga.c10
-rw-r--r--src/os_mswin.c11
-rw-r--r--src/os_unix.c10
-rw-r--r--src/proto/os_amiga.pro1
-rw-r--r--src/proto/os_mswin.pro1
-rw-r--r--src/proto/os_unix.pro1
-rw-r--r--src/version.c2
8 files changed, 3 insertions, 35 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index e11ad08d43..78aee97992 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5927,7 +5927,7 @@ ex_mode(exarg_T *eap)
if (*eap->arg == NUL)
shell_resized();
else
- mch_screenmode(eap->arg);
+ emsg(_(e_screenmode));
}
/*
diff --git a/src/os_amiga.c b/src/os_amiga.c
index 4cf39e15d1..1e3fd4b201 100644
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -989,16 +989,6 @@ mch_settmode(int tmode)
}
/*
- * set screen mode, always fails.
- */
- int
-mch_screenmode(char_u *arg)
-{
- emsg(_(e_screenmode));
- return FAIL;
-}
-
-/*
* Code for this routine came from the following :
*
* ConPackets.c - C. Scheppner, A. Finkel, P. Lindsay CBM
diff --git a/src/os_mswin.c b/src/os_mswin.c
index c7cfd27613..faa4c99dbd 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -742,17 +742,6 @@ mch_check_messages(void)
#endif
-/*
- * set screen mode, always fails.
- */
- int
-mch_screenmode(char_u *arg UNUSED)
-{
- emsg(_(e_screenmode));
- return FAIL;
-}
-
-
#if defined(FEAT_LIBCALL) || defined(PROTO)
/*
* Call a DLL routine which takes either a string or int param
diff --git a/src/os_unix.c b/src/os_unix.c
index 7e7820934b..5f2ece3dd8 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3937,16 +3937,6 @@ check_mouse_termcode(void)
}
}
-/*
- * set screen mode, always fails.
- */
- int
-mch_screenmode(char_u *arg UNUSED)
-{
- emsg(_(e_screenmode));
- return FAIL;
-}
-
#ifndef VMS
/*
diff --git a/src/proto/os_amiga.pro b/src/proto/os_amiga.pro
index 7aaf1719fe..8e12f4da28 100644
--- a/src/proto/os_amiga.pro
+++ b/src/proto/os_amiga.pro
@@ -32,7 +32,6 @@ int mch_nodetype(char_u *name);
void mch_early_init(void);
void mch_exit(int r);
void mch_settmode(int tmode);
-int mch_screenmode(char_u *arg);
int mch_get_shellsize(void);
void mch_set_shellsize(void);
void mch_new_shellsize(void);
diff --git a/src/proto/os_mswin.pro b/src/proto/os_mswin.pro
index 6cc8a5d925..ade7cc2556 100644
--- a/src/proto/os_mswin.pro
+++ b/src/proto/os_mswin.pro
@@ -19,7 +19,6 @@ void display_errors(void);
int mch_has_exp_wildcard(char_u *p);
int mch_has_wildcard(char_u *p);
int mch_chdir(char *path);
-int mch_screenmode(char_u *arg);
int mch_icon_load(HANDLE *iconp);
int mch_libcall(char_u *libname, char_u *funcname, char_u *argstring, int argint, char_u **string_result, int *number_result);
void DumpPutS(const char *psz);
diff --git a/src/proto/os_unix.pro b/src/proto/os_unix.pro
index 14cde4a135..b9db0fc56f 100644
--- a/src/proto/os_unix.pro
+++ b/src/proto/os_unix.pro
@@ -54,7 +54,6 @@ int get_tty_info(int fd, ttyinfo_T *info);
void mch_setmouse(int on);
void mch_bevalterm_changed(void);
void check_mouse_termcode(void);
-int mch_screenmode(char_u *arg);
int mch_get_shellsize(void);
int mch_report_winsize(int fd, int rows, int cols);
void mch_set_shellsize(void);
diff --git a/src/version.c b/src/version.c
index a32231b324..1ed040d328 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 125,
+/**/
124,
/**/
123,