Mercurial > vim
comparison src/vim.h @ 22840:7c1e2e3f2d8d v8.2.1967
patch 8.2.1967: the session file does not restore the alternate file
Commit: https://github.com/vim/vim/commit/59d8e56e048eb5d384649284fb35363931fc3697
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 7 18:41:10 2020 +0100
patch 8.2.1967: the session file does not restore the alternate file
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Nov 2020 18:45:04 +0100 |
parents | 92a100fc5e17 |
children | ec23d84a096d |
comparison
equal
deleted
inserted
replaced
22839:5a6b1d00c97e | 22840:7c1e2e3f2d8d |
---|---|
1027 #define ECMD_SET_HELP 0x02 // set b_help flag of (new) buffer before | 1027 #define ECMD_SET_HELP 0x02 // set b_help flag of (new) buffer before |
1028 // opening file | 1028 // opening file |
1029 #define ECMD_OLDBUF 0x04 // use existing buffer if it exists | 1029 #define ECMD_OLDBUF 0x04 // use existing buffer if it exists |
1030 #define ECMD_FORCEIT 0x08 // ! used in Ex command | 1030 #define ECMD_FORCEIT 0x08 // ! used in Ex command |
1031 #define ECMD_ADDBUF 0x10 // don't edit, just add to buffer list | 1031 #define ECMD_ADDBUF 0x10 // don't edit, just add to buffer list |
1032 #define ECMD_ALTBUF 0x20 // like ECMD_ADDBUF and set the alternate file | |
1032 | 1033 |
1033 // for lnum argument in do_ecmd() | 1034 // for lnum argument in do_ecmd() |
1034 #define ECMD_LASTL (linenr_T)0 // use last position in loaded file | 1035 #define ECMD_LASTL (linenr_T)0 // use last position in loaded file |
1035 #define ECMD_LAST (linenr_T)-1 // use last position in all files | 1036 #define ECMD_LAST (linenr_T)-1 // use last position in all files |
1036 #define ECMD_ONE (linenr_T)1 // use first line | 1037 #define ECMD_ONE (linenr_T)1 // use first line |