diff options
author | Ingo Karkat <swdev@ingo-karkat.de> | 2012-11-26 09:54:40 +0100 |
---|---|---|
committer | Ingo Karkat <swdev@ingo-karkat.de> | 2012-11-26 10:02:04 +0100 |
commit | 10afe7fc2610ebfa5279a140fcd4aead61033175 (patch) | |
tree | b582697454d9951a585cda108b5262b4079bc9ae /compat.vim | |
parent | 44b04871f812418ac0fe7b38e59222de118d07cb (diff) | |
download | vim-easytags-10afe7fc2610ebfa5279a140fcd4aead61033175.tar.gz |
FIX: Prevent cache corruption by moving before tags write.
A side effect of xolox#easytags#write_tagsfile() is that the entries argument is joined together. This then causes problems in s:cache_tagged_files_in(), where the filename element is addressed via entry[1]. When the entries have been flattened, this accesses a single character, and then the cache is corrupted.
To fix this, move the cache update before the writing of the tags file. This avoids the need to make a copy of the entries before flattening them.
Diffstat (limited to 'compat.vim')
0 files changed, 0 insertions, 0 deletions