Skip to content

Fix line numbers not aligning with lines#307

Merged
nausharipov merged 2 commits intoakvelon:mainfrom
ViscousPot:main
Sep 17, 2025
Merged

Fix line numbers not aligning with lines#307
nausharipov merged 2 commits intoakvelon:mainfrom
ViscousPot:main

Conversation

@ViscousPot
Copy link
Contributor

@ViscousPot ViscousPot commented Aug 5, 2025

What type of PR is this?

  • 🐛 Bug Fix

Description

Line numbers now scroll with the code lines
The padding has been fixed so that

  • the line numbers align with the code
  • the line numbers cut off at the same point as the code while scrolling

_numberScroll actually already existed and was setup for the scroll syncing so I assume the functionality was lost along the way

Added tests?

  • 🙅 no, because they aren't needed

Added to documentation?

  • 🙅 No documentation needed

@nausharipov nausharipov merged commit 44badd1 into akvelon:main Sep 17, 2025
1 check passed
razankv13 added a commit to zingdata/flutter-code-editor that referenced this pull request Oct 20, 2025
This merge brings in important bug fixes and features from main while preserving
all autocomplete/suggestions improvements from improve-editor branch.

Changes from main integrated:
- Flutter/Dart version upgrade (3.22.2/3.4.3)
- Dispose fixes (akvelon#298): Added _disposed flag and mounted checks
- UndoHistoryController support (akvelon#302)
- Line height in default text style fix (akvelon#297)
- YAML support and comments (akvelon#305, akvelon#199)
- JS/TS single line comments (akvelon#291)
- Paired symbols support (akvelon#192)
- Line numbers alignment fix (akvelon#307)
- Pull request template
- Various dependency updates

Changes preserved from improve-editor:
- Refactored code_controller structure (directory with helpers)
- SQL formatter and suggestions logic
- Word insertion helper
- Popup positioning improvements
- Gutter scrollbar hiding
- Browser detection enhancements
- All autocomplete/suggestions improvements

Conflicts resolved:
- code_field.dart: Integrated dispose, undo, and line height fixes
- code_controller.dart: Kept refactored structure, added dispose fix
- gutter.dart: Kept scrollbar hiding feature
- popup.dart & popup_controller.dart: Kept positioning improvements
- parser_factory.dart: Added YAML support with package imports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants