summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-29 19:02:46 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-29 19:02:46 +0200
commitac02a638b4ae2f019b448bf82bf2667e75ff939e (patch)
treecb97db1ed47f12821c2408380bef0ab3363ef9e2 /src/session.c
parentee1a2b5a2a44dde9b4e9b34141b4d1c7b0e0513f (diff)
downloadvim-git-ac02a638b4ae2f019b448bf82bf2667e75ff939e.tar.gz
patch 8.1.2101: write_session_file() often defined but not usedv8.1.2101
Problem: write_session_file() often defined but not used. Solution: Adjust the #ifdef. (Yegappan Lakshmanan, closes #4998)
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 7139c5235..41835db26 100644
--- a/src/session.c
+++ b/src/session.c
@@ -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