diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2015-11-23 23:03:29 +0100 |
---|---|---|
committer | Felipe Morales <hel.sheep@gmail.com> | 2015-11-23 23:03:29 +0100 |
commit | 80cf03602ea68f47c3e70f5193c5c2380940fe45 (patch) | |
tree | 58cda1332b1075af5f9ee3cdd7e48b40317ca143 /runtime | |
parent | 369c1fdb259daf4f305ada8744e0564250480398 (diff) | |
parent | b98cea909f1a38fc8d0f901164e1e44b03620e2a (diff) | |
download | rneovim-80cf03602ea68f47c3e70f5193c5c2380940fe45.tar.gz rneovim-80cf03602ea68f47c3e70f5193c5c2380940fe45.tar.bz2 rneovim-80cf03602ea68f47c3e70f5193c5c2380940fe45.zip |
Merge pull request #3581 from ZyX-I/fix-shada
Store last search direction when writing ShaDa files
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/shada.vim | 4 | ||||
-rw-r--r-- | runtime/doc/starting.txt | 2 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/runtime/autoload/shada.vim b/runtime/autoload/shada.vim index 234f35398b..9be85b6f2e 100644 --- a/runtime/autoload/shada.vim +++ b/runtime/autoload/shada.vim @@ -43,7 +43,8 @@ call map(copy(s:SHADA_ENTRY_NAMES), " Only contains data for entries which are represented as mappings, except for " the header. let s:SHADA_MAP_ENTRIES = { - \'search_pattern': ['sp', 'sh', 'ss', 'sm', 'sc', 'sl', 'se', 'so', 'su'], + \'search_pattern': ['sp', 'sh', 'ss', 'sb', 'sm', 'sc', 'sl', 'se', 'so', + \ 'su'], \'register': ['n', 'rc', 'rw', 'rt'], \'global_mark': ['n', 'f', 'l', 'c'], \'local_mark': ['f', 'n', 'l', 'c'], @@ -134,6 +135,7 @@ let s:SHADA_STANDARD_KEYS = { \'ss': ['is :s pattern', 'boolean', g:msgpack#false], \'sh': ['v:hlsearch value', 'boolean', g:msgpack#false], \'sp': ['pattern', 'bin', s:SHADA_REQUIRED], + \'sb': ['search backward', 'boolean', g:msgpack#false], \'rt': ['type', 'regtype', s:SHADA_ENUMS.regtype.CHARACTERWISE], \'rw': ['block width', 'uint', 0], \'rc': ['contents', 'binarray', s:SHADA_REQUIRED], diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 572823eca9..f729fbefcc 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -1232,6 +1232,8 @@ exactly four MessagePack objects: With |shada-h| or 'nohlsearch' this key is always false. sp Binary N/A Actual pattern. Required. + sb Boolean false True if search direction is + backward. * any none Other keys are allowed for compatibility reasons, see |shada-compatibility|. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 6cbc2aef59..a6cbf6f4c4 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -117,6 +117,7 @@ Additional differences: |shada-error-handling| - Vim keeps no timestamps at all, neither in viminfo file nor in the instance itself. +- ShaDa file keeps search direction (|v:searchforward|), viminfo does not. ============================================================================== 4. New Features *nvim-features-new* |