Skip to content

Commit 5b5a28c

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 5b9f445 + 78c7e27 commit 5b5a28c

File tree

8 files changed

+7
-34
lines changed

8 files changed

+7
-34
lines changed

src/evalfunc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6008,10 +6008,6 @@ f_has(typval_T *argvars, typval_T *rettv)
60086008
#ifdef FEAT_GUI
60096009
else if (STRICMP(name, "gui_running") == 0)
60106010
n = (gui.in_use || gui.starting);
6011-
# ifdef FEAT_GUI_W32
6012-
else if (STRICMP(name, "gui_win32s") == 0)
6013-
n = gui_is_win32s();
6014-
# endif
60156011
# ifdef FEAT_BROWSE
60166012
else if (STRICMP(name, "browse") == 0)
60176013
n = gui.in_use; /* gui_mch_browse() works when GUI is running */

src/ex_cmds.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,11 +1927,7 @@ write_viminfo(char_u *file, int forceit)
19271927
#ifdef UNIX
19281928
shortname,
19291929
#else
1930-
# ifdef FEAT_GUI_W32
1931-
gui_is_win32s(),
1932-
# else
19331930
FALSE,
1934-
# endif
19351931
#endif
19361932
fname,
19371933
#ifdef VMS

src/gui_w32.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,15 +4533,6 @@ is_winnt_3(void)
45334533
|| (os_version.dwPlatformId == VER_PLATFORM_WIN32s));
45344534
}
45354535

4536-
/*
4537-
* Return TRUE when running under Win32s.
4538-
*/
4539-
int
4540-
gui_is_win32s(void)
4541-
{
4542-
return (os_version.dwPlatformId == VER_PLATFORM_WIN32s);
4543-
}
4544-
45454536
#ifdef FEAT_MENU
45464537
/*
45474538
* Figure out how high the menu bar is at the moment.

src/option.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3355,16 +3355,6 @@ set_init_1(void)
33553355
}
33563356
}
33573357

3358-
#ifdef FEAT_GUI_W32
3359-
/* force 'shortname' for Win32s */
3360-
if (gui_is_win32s())
3361-
{
3362-
opt_idx = findoption((char_u *)"shortname");
3363-
if (opt_idx >= 0)
3364-
options[opt_idx].def_val[VI_DEFAULT] = (char_u *)TRUE;
3365-
}
3366-
#endif
3367-
33683358
#ifdef FEAT_SEARCHPATH
33693359
{
33703360
char_u *cdpath;

src/os_win32.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,6 @@ mch_init(void)
20622062
Columns = 80;
20632063

20642064
/* Look for 'vimrun' */
2065-
if (!gui_is_win32s())
20662065
{
20672066
char_u vimrun_location[_MAX_PATH + 4];
20682067

@@ -4142,7 +4141,7 @@ mch_system_classic(char *cmd, int options)
41424141
* Win32s either as it stops the synchronous spawn workaround working.
41434142
* Don't activate the window to keep focus on Vim.
41444143
*/
4145-
if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
4144+
if ((options & SHELL_DOOUT) && !mch_windows95())
41464145
si.wShowWindow = SW_SHOWMINNOACTIVE;
41474146
else
41484147
si.wShowWindow = SW_SHOWNORMAL;

src/proto/gui_w32.pro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ void mch_set_mouse_shape(int shape);
6262
char_u *gui_mch_browsedir(char_u *title, char_u *initdir);
6363
char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
6464
int get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree);
65-
int gui_is_win32s(void);
6665
void gui_mch_set_parent(char *title);
6766
void gui_mch_prepare(int *argc, char **argv);
6867
int gui_mch_init(void);

src/version.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,10 @@ static char *(features[]) =
778778

779779
static int included_patches[] =
780780
{ /* Add new patch number below this line */
781+
/**/
782+
2253,
783+
/**/
784+
2252,
781785
/**/
782786
2251,
783787
/**/
@@ -5432,8 +5436,6 @@ list_version(void)
54325436
MSG_PUTS(_("\nMS-Windows 32-bit GUI version"));
54335437
# endif
54345438
# endif
5435-
if (gui_is_win32s())
5436-
MSG_PUTS(_(" in Win32s mode"));
54375439
# ifdef FEAT_OLE
54385440
MSG_PUTS(_(" with OLE support"));
54395441
# endif

src/vim.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,14 +1635,14 @@ typedef UINT32_TYPEDEF UINT32_T;
16351635
# define GUI_FUNCTION2(f, pixel) (gui.in_use \
16361636
? ((pixel) != INVALCOLOR \
16371637
? gui_##f((pixel)) \
1638-
: (long_u)INVALCOLOR) \
1638+
: INVALCOLOR) \
16391639
: termgui_##f((pixel)))
16401640
# define USE_24BIT (gui.in_use || p_tgc)
16411641
# else
16421642
# define GUI_FUNCTION(f) gui_##f
16431643
# define GUI_FUNCTION2(f,pixel) ((pixel) != INVALCOLOR \
16441644
? gui_##f((pixel)) \
1645-
: (long_u)INVALCOLOR)
1645+
: INVALCOLOR)
16461646
# define USE_24BIT gui.in_use
16471647
# endif
16481648
#else

0 commit comments

Comments
 (0)