Mercurial > vim
changeset 18213:aa0972536d3e v8.1.2101
patch 8.1.2101: write_session_file() often defined but not used
Commit: https://github.com/vim/vim/commit/ac02a638b4ae2f019b448bf82bf2667e75ff939e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 29 19:02:46 2019 +0200
patch 8.1.2101: write_session_file() often defined but not used
Problem: write_session_file() often defined but not used.
Solution: Adjust the #ifdef. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4998)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 29 Sep 2019 19:15:04 +0200 |
parents | 713f1aea5f87 |
children | 9dc510e9e6e7 |
files | src/session.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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