Mercurial > vim
comparison src/session.c @ 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 | 4d63d47d87ef |
children | 86a865a89661 |
comparison
equal
deleted
inserted
replaced
18212:713f1aea5f87 | 18213:aa0972536d3e |
---|---|
983 do_source(fname, FALSE, DOSO_NONE); | 983 do_source(fname, FALSE, DOSO_NONE); |
984 vim_free(fname); | 984 vim_free(fname); |
985 } | 985 } |
986 } | 986 } |
987 | 987 |
988 #if defined(FEAT_GUI) || defined(PROTO) | 988 # if defined(USE_GNOME_SESSION) \ |
989 || (defined(GUI_MAY_SPAWN) && defined(EXPERIMENTAL_GUI_CMD)) \ | |
990 || defined(PROTO) | |
989 /* | 991 /* |
990 * Generate a script that can be used to restore the current editing session. | 992 * Generate a script that can be used to restore the current editing session. |
991 * Save the value of v:this_session before running :mksession in order to make | 993 * Save the value of v:this_session before running :mksession in order to make |
992 * automagic session save fully transparent. Return TRUE on success. | 994 * automagic session save fully transparent. Return TRUE on success. |
993 */ | 995 */ |