tomlin7 / biscuit

Aesthetic, lightweight code editor with extension support
https://tomlin7.github.io/biscuit
MIT License
189 stars 27 forks source link

Multiple indent guides rendered at some indent levels #413

Open tomlin7 opened 1 month ago

tomlin7 commented 1 month ago

Bug

Multiple indent guides rendered at some indent levels. For example, see the indent level 3 in following screenshot

image

This is either an inconsistency caused by the bitmap used or the code, or tk itself not scaling properly.

Following code manages updation of indent guides

https://github.com/tomlin7/biscuit/blob/c75d59f1fe85981bf36b931190d4dd22a5d3df6b/src/biscuit/editor/text/text.py#L287-L319

The indent guide uses following bitmaps

https://github.com/tomlin7/biscuit/blob/c75d59f1fe85981bf36b931190d4dd22a5d3df6b/src/biscuit/editor/text/text.py#L136-L145

System Information