mirror of
https://github.com/neovim/neovim.git
synced 2025-11-25 03:30:37 +00:00
Remove mch_screenmode, inline EMSG into ex_mode()
This commit is contained in:
committed by
Thiago de Arruda
parent
3f38c384ef
commit
bf9aeda01c
@@ -6159,15 +6159,16 @@ static void ex_tabs(exarg_T *eap)
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ":mode": Set screen mode.
|
* ":mode":
|
||||||
* If no argument given, just get the screen size and redraw.
|
* If no argument given, get the screen size and redraw.
|
||||||
*/
|
*/
|
||||||
static void ex_mode(exarg_T *eap)
|
static void ex_mode(exarg_T *eap)
|
||||||
{
|
{
|
||||||
if (*eap->arg == NUL)
|
if (*eap->arg == NUL) {
|
||||||
shell_resized();
|
shell_resized();
|
||||||
else
|
} else {
|
||||||
mch_screenmode(eap->arg);
|
EMSG(_(e_screenmode));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1080,11 +1080,8 @@ EXTERN char_u e_readerrf[] INIT(= N_("E47: Error while reading errorfile"));
|
|||||||
EXTERN char_u e_sandbox[] INIT(= N_("E48: Not allowed in sandbox"));
|
EXTERN char_u e_sandbox[] INIT(= N_("E48: Not allowed in sandbox"));
|
||||||
#endif
|
#endif
|
||||||
EXTERN char_u e_secure[] INIT(= N_("E523: Not allowed here"));
|
EXTERN char_u e_secure[] INIT(= N_("E523: Not allowed here"));
|
||||||
#if defined(AMIGA) || defined(MACOS) || defined(MSWIN) \
|
|
||||||
|| defined(UNIX) || defined(VMS) || defined(OS2)
|
|
||||||
EXTERN char_u e_screenmode[] INIT(= N_(
|
EXTERN char_u e_screenmode[] INIT(= N_(
|
||||||
"E359: Screen mode setting not supported"));
|
"E359: Screen mode setting not supported"));
|
||||||
#endif
|
|
||||||
EXTERN char_u e_scroll[] INIT(= N_("E49: Invalid scroll size"));
|
EXTERN char_u e_scroll[] INIT(= N_("E49: Invalid scroll size"));
|
||||||
EXTERN char_u e_shellempty[] INIT(= N_("E91: 'shell' option is empty"));
|
EXTERN char_u e_shellempty[] INIT(= N_("E91: 'shell' option is empty"));
|
||||||
EXTERN char_u e_signdata[] INIT(= N_("E255: Couldn't read in sign data!"));
|
EXTERN char_u e_signdata[] INIT(= N_("E255: Couldn't read in sign data!"));
|
||||||
|
|||||||
@@ -889,17 +889,6 @@ void check_mouse_termcode()
|
|||||||
del_mouse_termcode(KS_SGR_MOUSE);
|
del_mouse_termcode(KS_SGR_MOUSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* set screen mode, always fails.
|
|
||||||
*/
|
|
||||||
int mch_screenmode(arg)
|
|
||||||
char_u *arg;
|
|
||||||
{
|
|
||||||
EMSG(_(e_screenmode));
|
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to get the current window size:
|
* Try to get the current window size:
|
||||||
* 1. with an ioctl(), most accurate method
|
* 1. with an ioctl(), most accurate method
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ void mch_settmode(int tmode);
|
|||||||
void get_stty(void);
|
void get_stty(void);
|
||||||
void mch_setmouse(int on);
|
void mch_setmouse(int on);
|
||||||
void check_mouse_termcode(void);
|
void check_mouse_termcode(void);
|
||||||
int mch_screenmode(char_u *arg);
|
|
||||||
int mch_get_shellsize(void);
|
int mch_get_shellsize(void);
|
||||||
void mch_set_shellsize(void);
|
void mch_set_shellsize(void);
|
||||||
int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
||||||
|
|||||||
Reference in New Issue
Block a user