]> git.lyx.org Git - features.git/commit
Keep last file positions in last-use ordering
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 20 Oct 2019 09:47:04 +0000 (11:47 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 20 Oct 2019 10:37:27 +0000 (12:37 +0200)
commit58d22e0c6edab4cb68af63d3ccaafcb875be995d
treeb993b94c3a65d5e7d9da26ba436ece505e99d6f8
parentac106bd7204cad36256eed70116f0f4447a75b30
Keep last file positions in last-use ordering

Using a map would sort the elements in alphabetic ordering, which
means that when the number of elements is larger than 100, the wrong
elements get pruned.

This commit uses a list instead. Searching an item needs linear time,
but this should not be a problem for a list with less than 100
elements.

Fixes bug #10310.
src/BufferView.cpp
src/Session.cpp
src/Session.h