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

Fix cursor movement on selections with arrow keys #1911

Merged
merged 1 commit into from Jan 3, 2023

Conversation

MinusGix
Copy link
Member

@MinusGix MinusGix commented Jan 2, 2023

  • Added an entry to CHANGELOG.md if this change could be valuable to users

Fixes #1908

(Where | is the cursor and |H| is a selection)
Before: |H|ello -> right arrow key -> He|llo
|H|ello -> right arrow key -> H|ello
This matches other applications better.

It would be nice to have tests for this, but I didn't see testing code for the document movement commands?

@MinusGix MinusGix added the A-editor Area: editor, modal editing label Jan 2, 2023
@MinusGix MinusGix force-pushed the selection-arrow-keys branch 2 times, most recently from 434e227 to aadd749 Compare January 2, 2023 23:35
@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2023

Codecov Report

Merging #1911 (aadd749) into master (97d626d) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #1911      +/-   ##
=========================================
- Coverage    8.49%   8.48%   -0.01%     
=========================================
  Files         130     130              
  Lines       56586   56597      +11     
=========================================
  Hits         4805    4805              
- Misses      51781   51792      +11     
Impacted Files Coverage Δ
lapce-data/src/document.rs 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dzhou121 dzhou121 merged commit 84bccd6 into lapce:master Jan 3, 2023
@panekj panekj added this to the Next release milestone Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-editor Area: editor, modal editing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cursor movement with keyboard behaves differently than most editors
4 participants