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: modified ctrl-v past behavior #105

Merged
merged 2 commits into from
Mar 26, 2025
Merged

Conversation

manthanabc
Copy link
Contributor

Updates the ctrl-v paste behavior

Before

Ctrl -v added text after cursor, keeping cursor where it was

oldi.mp4

Now

Ctrl -v adds text before the cursor, moving cursor forward

newi.mp4

as discussed in #97

Copy link
Member

@kgilmer kgilmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trivial nit, otherwise LGTM

@@ -496,10 +496,9 @@ namespace Ilia {

if (entry.get_selection_bounds(out start, out end)) {
entry.get_buffer().delete_text(start, end - start);
entry.get_buffer().insert_text(start, text.data);
entry.insert_at_cursor(text);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is repeated in both branches of the predicate, please move it out to the line below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should've thought of that, i'll add the changes

Copy link
Member

@kgilmer kgilmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kgilmer kgilmer merged commit 0c84c06 into regolith-linux:main Mar 26, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants