textadept icon indicating copy to clipboard operation
textadept copied to clipboard

When `~/.textadept/locale.conf` is present, **Edit** > **Preferences** followed by **Quick Open User Home** shows a single tab in the tab bar

Open georgeraraujo opened this issue 1 year ago • 3 comments
trafficstars

The behavior I describe below only happens when ~/.textadept/locale.conf is present, i.e., when Textadept is localized. I am running the 16 Feb 2024 nightly on Windows 10.

I start Textadept. No file is open from the previous session.

image

I click on the Edit > Preferences menu item, and Textadept opens ~/.textadept/init.lua.

image

I click on the Tools > Quick Open > Quickly Open User Home menu item, open some other file in my ~/.textadept/ directory (namely, ~/.textadept/themes/base16-framer.lua), and Textadept opens it. The tab bar appears and shows a single tab corresponding to the file I just opened, but there is no tab in the tab bar for ~/.textadept/init.lua from the previous step.

image

I click on the Buffer > Next Buffer menu item, and the tab corresponding to ~/.textadept/init.lua appears in the tab bar.

image

The behavior does not happen when Textadept is not localized.

georgeraraujo avatar Feb 16 '24 20:02 georgeraraujo

Thanks for the report. I'll look into this when I have some time.

orbitalquark avatar Feb 16 '24 22:02 orbitalquark

I was not able to reproduce this erroneous behavior on any of the three platforms I tested on: Windows, macOS, and Linux.

I cannot see how the locale file would cause something like this, because Textadept just reads from it on startup to populate a table of localized strings/messages for display.

orbitalquark avatar Mar 01 '24 19:03 orbitalquark

I just reproduced the issue with 12.3. When ~/.textadept/locale.conf is present, the issue happens; when it is absent, the issue does not happen.

Feel free to close the issue. I only created it because I think it shouldn't go unreported.

georgeraraujo avatar Mar 01 '24 19:03 georgeraraujo