summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-07 18:41:10 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-07 18:41:10 +0100
commit59d8e56e048eb5d384649284fb35363931fc3697 (patch)
tree3941971859628440195075acf6104cac9ef43821 /src/vim.h
parentcbcd9cbd77acc8cc97c0d44683d96c01d3dd0fa7 (diff)
downloadvim-git-59d8e56e048eb5d384649284fb35363931fc3697.tar.gz
patch 8.2.1967: the session file does not restore the alternate filev8.2.1967
Problem: The session file does not restore the alternate file. Solution: Add ":balt". Works like ":badd" and also sets the buffer as the alternate file. Use it in the session file. (closes #7269, closes #6714)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 289ef3cc8..d2e22fef0 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1029,6 +1029,7 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
#define ECMD_OLDBUF 0x04 // use existing buffer if it exists
#define ECMD_FORCEIT 0x08 // ! used in Ex command
#define ECMD_ADDBUF 0x10 // don't edit, just add to buffer list
+#define ECMD_ALTBUF 0x20 // like ECMD_ADDBUF and set the alternate file
// for lnum argument in do_ecmd()
#define ECMD_LASTL (linenr_T)0 // use last position in loaded file