Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marker margin width based on line number margin width #85

Open
jxzwp opened this issue May 28, 2023 · 1 comment
Open

Marker margin width based on line number margin width #85

jxzwp opened this issue May 28, 2023 · 1 comment

Comments

@jxzwp
Copy link

jxzwp commented May 28, 2023

The width of margin 2, the marker margin is based upon the width of margin 1, the line number margin. Which doesn't make much sense and results in it being wider than needed.

target.margin_width_n[2] = not CURSES and target.margin_width_n[1] + 4 or 1

I think the line above should be

target.margin_width_n[2] = not CURSES and 4 or 1 

That's the default in TA 11 and TA 12 see

https://github.com/orbitalquark/textadept/blob/2dc0609b81018fa52f75084ec6c22b59c5771e6b/init.lua#L171

Thanks.

@rgieseke
Copy link
Owner

Good question. I think the original intention was to somehow hide the line number (but I might mis-remember).
This looks indeed odd though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants