Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Final Text & Selection Inset Fix#67

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@thecoolwinter
Copy link
Contributor

Description

The linked pull request revealed issues with how we draw selections. This finishes a series of patches finishing exactly how we can inset text and selections. This change makes multi-line selections select only text regions, rather than being determined by the available space to draw selections, making multi-line selections draw uniformly.

It also simplifies the drawing logic, using a single function for determining all selection drawing rects, rather than three different logic paths.

The issue mentioned in the linked pr has been opened on this repository. I'll be opening a related pr in CESE reverting that change for a later update.

Related Issues

Checklist

  • I read and understood thecontributing guide as well as thecode of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Note the trailing padding, and the leading single selection spacing. After this change, we can inset the leadingtextInset and still have correct multi-line selections.

After this change (in CESE):
Screenshot 2025-02-01 at 9 18 05 PM
Screenshot 2025-02-01 at 9 17 54 PM

Before:
Screenshot 2025-02-01 at 9 19 32 PM
Screenshot 2025-02-01 at 9 19 35 PM

@thecoolwinterthecoolwinter merged commit1792167 intoCodeEditApp:mainFeb 2, 2025
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@austincondiffaustincondiffaustincondiff approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@thecoolwinter@austincondiff

[8]ページ先頭

©2009-2025 Movatter.jp