Partly reverted 2010-06-27T19:01:17Z!guillaume.melquiond@gmail.com...

...as it causes glitches when using :refresh.
This commit is contained in:
Guillaume Melquiond 2010-06-28 04:06:48 +00:00
parent 5437b5e926
commit 4f108af8b0

View file

@ -171,7 +171,10 @@ void flush_cache()
reversed_images_.clear();
image_existence_map.clear();
precached_dirs.clear();
last_index_ = 0;
/* We can't reset last_index_, since some locators are still alive
when using :refresh. That would cause them to point to the wrong
images. Not resetting the variable causes a memory leak, though. */
// last_index_ = 0;
}
void locator::init_index()