Menu

#1858 Recent buffer switcher loses order when a buffer is closed

open
nobody
5
2016-08-07
2016-07-06
AdamS
No
  • Open several buffers
  • Open recent buffer switcher. Entries are correctly sorted by most-recently used.
  • Press shortcut to close a buffer (delete key for me)
  • Seen: Buffers revert to alphabetical order.
  • Expected: Buffers stay in most-recently used order

Discussion

  • AdamS

    AdamS - 2016-07-06

    Here is a patch that fixes it for me. It's my first contribution to jEdit so sorry if I've not followed all the correct conventions.

     
  • Dale Anson

    Dale Anson - 2016-07-15

    Just checking, what do you have set in Utilities - Global Options - View for "Sort Buffer Switcher" and "Sort BufferSwitcher by file name instead of path name"? I'm asking because I can't seem to reproduce this issue.

     

    Last edit: Dale Anson 2016-07-15
  • AdamS

    AdamS - 2016-07-18

    Thanks. Both of those settings are ticked for me. Let me know if there is anything else that would help e.g. screenshots.

     
  • AdamS

    AdamS - 2016-08-07

    Hi Dale,
    Perhaps I can clarify how to reproduce.

    • Create files a.txt, b.txt, c.txt, d.txt, e.txt.
    • Open/switch to them so that e is most recent and a oldest.
    • Open recent buffer switcher. Files are correctly with e at top and a at bottom.
    • STILL WITHIN recent buffer switcher, use the cursor keys to move the highlighted file down to c.txt, and press delete, which closes buffer c.txt.
    • Observed: switcher shows a, b, d, e in alphabetic order.
    • Expected: e, d, b, a in recent order.

    Thanks,
    Adam

     

Log in to post a comment.