Created attachment 109938 [details] Simple fix Older versions of kate (in Ubuntu 14.04 I think) would follow the most recently used document order when closing a document. To reproduce: - Open file "a", "b", "c", and "d" (in this order) - Use "Previous Document" twice (you should be back at "b") - Close document The expected behaviour is for "c" to be shown. The attached patch is a simple fix that Works For Me™, but I'm sure you will find a cleaner and better way to do it.
Please place your patch (if still needed) through KDE Gitlab (https://invent.kde.org/utilities/kate)