]> granicus.if.org Git - vim/commitdiff
patch 8.1.2049: cannot build tiny version v8.1.2049
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Sep 2019 18:54:31 +0000 (20:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Sep 2019 18:54:31 +0000 (20:54 +0200)
Problem:    Cannot build tiny version.
Solution:   Add #ifdefs.

src/main.c
src/version.c

index ff3d2349ffd1abaa92a0fd4dffa76f4864f5af15..52bbafe6c378a8433605efe5ef4c2357af66c935 100644 (file)
@@ -1061,11 +1061,13 @@ may_trigger_safestate(int safe)
                    && scriptin[curscript] == NULL
                    && !global_busy;
 
+#ifdef FEAT_JOB_CHANNEL
     if (was_safe != is_safe)
        // Only log when the state changes, otherwise it happens at nearly
        // every key stroke.
        ch_log(NULL, is_safe ? "Start triggering SafeState"
                                                : "Stop triggering SafeState");
+#endif
     if (is_safe)
        apply_autocmds(EVENT_SAFESTATE, NULL, NULL, FALSE, curbuf);
     was_safe = is_safe;
@@ -1079,8 +1081,10 @@ may_trigger_safestate(int safe)
     void
 state_no_longer_safe(void)
 {
+#ifdef FEAT_JOB_CHANNEL
     if (was_safe)
        ch_log(NULL, "safe state reset");
+#endif
     was_safe = FALSE;
 }
 
@@ -1093,11 +1097,15 @@ may_trigger_safestateagain(void)
 {
     if (was_safe)
     {
+#ifdef FEAT_JOB_CHANNEL
        ch_log(NULL, "Leaving unsafe area, triggering SafeStateAgain");
+#endif
        apply_autocmds(EVENT_SAFESTATEAGAIN, NULL, NULL, FALSE, curbuf);
     }
+#ifdef FEAT_JOB_CHANNEL
     else
        ch_log(NULL, "Leaving unsafe area, not triggering SafeStateAgain");
+#endif
 }
 
 
index b8c88081d9b61be0571bb8909816e1d130712fe5..1f120d39803c858f2849aaa695de9863197cf2e6 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2049,
 /**/
     2048,
 /**/