Skip to content

Commit 397c6a1

Browse files
committed
patch 8.1.2049: cannot build tiny version
Problem: Cannot build tiny version. Solution: Add #ifdefs.
1 parent 37d1807 commit 397c6a1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,11 +1061,13 @@ may_trigger_safestate(int safe)
10611061
&& scriptin[curscript] == NULL
10621062
&& !global_busy;
10631063

1064+
#ifdef FEAT_JOB_CHANNEL
10641065
if (was_safe != is_safe)
10651066
// Only log when the state changes, otherwise it happens at nearly
10661067
// every key stroke.
10671068
ch_log(NULL, is_safe ? "Start triggering SafeState"
10681069
: "Stop triggering SafeState");
1070+
#endif
10691071
if (is_safe)
10701072
apply_autocmds(EVENT_SAFESTATE, NULL, NULL, FALSE, curbuf);
10711073
was_safe = is_safe;
@@ -1079,8 +1081,10 @@ may_trigger_safestate(int safe)
10791081
void
10801082
state_no_longer_safe(void)
10811083
{
1084+
#ifdef FEAT_JOB_CHANNEL
10821085
if (was_safe)
10831086
ch_log(NULL, "safe state reset");
1087+
#endif
10841088
was_safe = FALSE;
10851089
}
10861090

@@ -1093,11 +1097,15 @@ may_trigger_safestateagain(void)
10931097
{
10941098
if (was_safe)
10951099
{
1100+
#ifdef FEAT_JOB_CHANNEL
10961101
ch_log(NULL, "Leaving unsafe area, triggering SafeStateAgain");
1102+
#endif
10971103
apply_autocmds(EVENT_SAFESTATEAGAIN, NULL, NULL, FALSE, curbuf);
10981104
}
1105+
#ifdef FEAT_JOB_CHANNEL
10991106
else
11001107
ch_log(NULL, "Leaving unsafe area, not triggering SafeStateAgain");
1108+
#endif
11011109
}
11021110

11031111

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ static char *(features[]) =
757757

758758
static int included_patches[] =
759759
{ /* Add new patch number below this line */
760+
/**/
761+
2049,
760762
/**/
761763
2048,
762764
/**/

0 commit comments

Comments
 (0)