]> 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>
Thu, 18 Jun 2020 13:48:45 +0000 (15:48 +0200)
commit52f7e9f5526324eef206b523eacd742ac269bee7
tree316b9581076f6513fe886bc9bc3a56c248946a13
parent4b19e44770d5021ddc82bd1eb7a63d8aa549c257
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