1
0
forked from aniani/vim

patch 7.4.1919

Problem:    Register contents is not merged when writing viminfo.
Solution:   Use timestamps for register contents.
This commit is contained in:
Bram Moolenaar
2016-06-11 21:04:39 +02:00
parent 62f8b4e180
commit 46bbb0c4ba
8 changed files with 365 additions and 149 deletions

View File

@@ -1075,9 +1075,11 @@ extern char *(*dyn_libintl_textdomain)(const char *domainname);
/* The type numbers are fixed for backwards compatibility. */
#define BARTYPE_VERSION 1
#define BARTYPE_HISTORY 2
#define BARTYPE_REGISTER 3
#define VIMINFO_VERSION 2
#define VIMINFO_VERSION 3
#define VIMINFO_VERSION_WITH_HISTORY 2
#define VIMINFO_VERSION_WITH_REGISTERS 3
typedef enum {
BVAL_NR,
@@ -1085,8 +1087,6 @@ typedef enum {
BVAL_EMPTY
} btype_T;
#define BVAL_MAX 4 /* Maximum number of fields in a barline. */
typedef struct {
btype_T bv_type;
long bv_nr;