mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.2077: build failure with small features
Problem: Build failure with small features. Solution: Add #ifdef.
This commit is contained in:
parent
c478ee3d83
commit
a452b808b4
@ -7994,12 +7994,14 @@ save_current_state(save_state_T *sst)
|
|||||||
sst->save_finish_op = finish_op;
|
sst->save_finish_op = finish_op;
|
||||||
sst->save_opcount = opcount;
|
sst->save_opcount = opcount;
|
||||||
sst->save_reg_executing = reg_executing;
|
sst->save_reg_executing = reg_executing;
|
||||||
sst->save_script_version = current_sctx.sc_version;
|
|
||||||
|
|
||||||
msg_scroll = FALSE; // no msg scrolling in Normal mode
|
msg_scroll = FALSE; // no msg scrolling in Normal mode
|
||||||
restart_edit = 0; // don't go to Insert mode
|
restart_edit = 0; // don't go to Insert mode
|
||||||
p_im = FALSE; // don't use 'insertmode'
|
p_im = FALSE; // don't use 'insertmode'
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
|
sst->save_script_version = current_sctx.sc_version;
|
||||||
current_sctx.sc_version = 1; // not in Vim9 script
|
current_sctx.sc_version = 1; // not in Vim9 script
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Save the current typeahead. This is required to allow using ":normal"
|
* Save the current typeahead. This is required to allow using ":normal"
|
||||||
@ -8023,7 +8025,9 @@ restore_current_state(save_state_T *sst)
|
|||||||
opcount = sst->save_opcount;
|
opcount = sst->save_opcount;
|
||||||
reg_executing = sst->save_reg_executing;
|
reg_executing = sst->save_reg_executing;
|
||||||
msg_didout |= sst->save_msg_didout; // don't reset msg_didout now
|
msg_didout |= sst->save_msg_didout; // don't reset msg_didout now
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
current_sctx.sc_version = sst->save_script_version;
|
current_sctx.sc_version = sst->save_script_version;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Restore the state (needed when called from a function executed for
|
// Restore the state (needed when called from a function executed for
|
||||||
// 'indentexpr'). Update the mouse and cursor, they may have changed.
|
// 'indentexpr'). Update the mouse and cursor, they may have changed.
|
||||||
|
@ -4155,7 +4155,9 @@ typedef struct {
|
|||||||
int save_finish_op;
|
int save_finish_op;
|
||||||
int save_opcount;
|
int save_opcount;
|
||||||
int save_reg_executing;
|
int save_reg_executing;
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
int save_script_version;
|
int save_script_version;
|
||||||
|
#endif
|
||||||
tasave_T tabuf;
|
tasave_T tabuf;
|
||||||
} save_state_T;
|
} save_state_T;
|
||||||
|
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2077,
|
||||||
/**/
|
/**/
|
||||||
2076,
|
2076,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user