orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
624 stars 38 forks source link

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

Open georgeraraujo opened 5 months ago

georgeraraujo commented 5 months ago

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.

orbitalquark commented 5 months ago

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

orbitalquark commented 4 months ago

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.

georgeraraujo commented 4 months ago

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.