-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: merge shada after VimLeave, #612. #769
Conversation
Signed-off-by: ayamir <lgt986452565@gmail.com>
I want to make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I mean in #612 is we should modify 'shada'
(the option). In fact, the current issue is previous ShaDa file(s) won't get merged with the ShaDa in memory since we supplied !
(forced):
*:wsh* *:wshada* *E137*
:wsh[ada][!] [file] Write to ShaDa file [file] (default: see above).
The information in the file is first read in to make
a merge between old and new info. When [!] is used,
the old information is not read first, only the
internal info is written (also disables safety checks
described in |shada-error-handling|). If 'shada' is
empty, marks for up to 100 files will be written.
When you get error "E929: All .tmp.X files exist,
cannot write ShaDa file!" check that no old temp files
were left behind (e.g.
~/.local/state/nvim/shada/main.shada.tmp*).
Note: Executing :wshada will reset all |'quote| marks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* fix: don't write shada after VimLeave, ayamir#612. Signed-off-by: ayamir <lgt986452565@gmail.com> * fixup! fix: don't write shada after VimLeave, ayamir#612. --------- Signed-off-by: ayamir <lgt986452565@gmail.com> Co-authored-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
* fix: don't write shada after VimLeave, ayamir#612. Signed-off-by: ayamir <lgt986452565@gmail.com> * fixup! fix: don't write shada after VimLeave, ayamir#612. --------- Signed-off-by: ayamir <lgt986452565@gmail.com> Co-authored-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
* fix: don't write shada after VimLeave, ayamir#612. Signed-off-by: ayamir <lgt986452565@gmail.com> * fixup! fix: don't write shada after VimLeave, ayamir#612. --------- Signed-off-by: ayamir <lgt986452565@gmail.com> Co-authored-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
No description provided.