Until recent when I close a file the previous selected file become the active.
But now it is broken
STEPS TO REPRODUCE
1. Open several files.
2. Select them in arbitrary not repeating order and fix it.
3. Close a file.
Current file is not the previously selected.
Current file must be the previously selected. If you continue closing file they shold appear in the reverse order you've fixed.
Operating System: Slackware-current
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.20
OS Type: 64-bit
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Please, fix it. This bug is very annoying.
Trying on 21.12, If I close a tab, it takes me to the previous one. Can you try with the latest please?
And if the bug is still reproducible, maybe you have more detailed steps on how to reproduce this or a video.
(In reply to Waqar Ahmed from comment #2)
> Trying on 21.12, If I close a tab, it takes me to the previous one. Can you
> try with the latest please?
> And if the bug is still reproducible, maybe you have more detailed steps on
> how to reproduce this or a video.
See the new attachment
Created attachment 145545 [details]
after closing a file kate selects not the previously used.
I used ctrl+W to close a file.
Tried again a few times, can not reproduce.
Maybe you have some config that triggers this bug.
(In reply to Waqar Ahmed from comment #6)
> Tried again a few times, can not reproduce.
> Maybe you have some config that triggers this bug.
It is possible. Which config do you need? I'll send you it.
Not sure which config. We do not have any configs controlling this behavior I think.
Do you limit the number of tabs?
It could probably be some particular access pattern causes this. Can you reliably reproduce this all the time or only sometimes?
> Do you limit the number of tabs?
Yes, I do, of course. But it must not touch the history of the visited file.
(In reply to Dmitri Koulikoff from comment #9)
> > Do you limit the number of tabs?
> Yes, I do, of course. But it must not touch the history of the visited file.
I can reproduce that, it will stay on the same tab (if limited) and fill there in the next document that has no tab ATM.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/625
Git commit 8573b12496d6ee26c5ab868734bf18ccf9395390 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 20/02/2022 at 17:07.
Pushed by cullmann into branch 'master'.
Fix LRU tab behaviour
M +10 -0 kate/kateviewspace.cpp