]> granicus.if.org Git - vim/commitdiff
patch 8.1.2101: write_session_file() often defined but not used v8.1.2101
authorBram Moolenaar <Bram@vim.org>
Sun, 29 Sep 2019 17:02:46 +0000 (19:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 29 Sep 2019 17:02:46 +0000 (19:02 +0200)
Problem:    write_session_file() often defined but not used.
Solution:   Adjust the #ifdef. (Yegappan Lakshmanan, closes #4998)

src/session.c
src/version.c

index 7139c52358d9e091f0a4896fb60b6e8d4d40fa35..41835db263cd8c445b27d8c385d3ee8372a92b24 100644 (file)
@@ -985,7 +985,9 @@ ex_loadview(exarg_T *eap)
     }
 }
 
-#if defined(FEAT_GUI) || defined(PROTO)
+# if defined(USE_GNOME_SESSION) \
+       || (defined(GUI_MAY_SPAWN) && defined(EXPERIMENTAL_GUI_CMD)) \
+       || defined(PROTO)
 /*
  * Generate a script that can be used to restore the current editing session.
  * Save the value of v:this_session before running :mksession in order to make
index cca023dba3ed10e28f0be0fe2b375b7703f5a3ad..8feb2cc72c942b77b215e2f8092d38a3cf281c3e 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2101,
 /**/
     2100,
 /**/