]> git.lyx.org Git - lyx.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>
Wed, 23 Oct 2019 13:09:23 +0000 (15:09 +0200)
commita7b5aea9b68fe039fdf4f57ddfd25c2f2348765f
tree79406518bb9e559916f8c5a9efdee57de19600c2
parentf6282dfec7c7d53fd92d7270f8806a39a9c5d75b
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.

(cherry picked from commit 58d22e0c6edab4cb68af63d3ccaafcb875be995d)
src/BufferView.cpp
src/Session.cpp
src/Session.h
status.23x