diff options
author | ZyX <kp-pav@yandex.ru> | 2015-07-26 20:46:40 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:00:25 +0300 |
commit | 12a31c70c1beb3d106c4450bbd2ab33a1f8c2316 (patch) | |
tree | 888af6f3129e2c010dd11e5f69cca5f41691d998 /scripts/shadacat.py | |
parent | 82934e8797651b934569ba77bd9fd6d8f75e87e6 (diff) | |
download | rneovim-12a31c70c1beb3d106c4450bbd2ab33a1f8c2316.tar.gz rneovim-12a31c70c1beb3d106c4450bbd2ab33a1f8c2316.tar.bz2 rneovim-12a31c70c1beb3d106c4450bbd2ab33a1f8c2316.zip |
shada,functests: Test compatibility support
For compatibility the following things are done:
1. Items with type greater then greatest type are ignored when reading and
copied when writing.
2. Registers with unknown name are ignored when reading and blindly copied when
writing.
3. Registers with unknown type are ignored when reading and merged as usual when
writing.
4. Local and global marks with unknown names are ignored when reading. When
writing global marks are blindly copied and local marks are also blindly
copied, but only if file they are attached to fits in the `'N` limit defined
in &shada. Unknown local mark’s timestamp is also taken into account when
calculating which files exactly should fit into this limit.
5. History items with unknown type are ignored when reading and blindly copied
when writing.
6. Unknown keys found in register, local marks, global marks, changes, jumps and
search pattern entries are read to additional_data Dictionary and dumped (of
course, unless any of these elements were not overwritten later). It
obviously works only for values conversible to Object type.
7. Additional elements found in replacement string and history entries are read
to additional_elements Array and dumped (same: only if they were not
overwritten later). Again this works only for elements conversible to Object
type.
8. Additional elements found in variable entries are simply ignored when
reading. When writing *new* variables they will be preserved during merging,
but that’s all. Variable values dumped from current NeoVim session never have
additional elements.
Diffstat (limited to 'scripts/shadacat.py')
0 files changed, 0 insertions, 0 deletions