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

Wrap as you type on multiple cell selection #601

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

tobiolo
Copy link
Collaborator

@tobiolo tobiolo commented Jan 19, 2024

No description provided.

@@ -972,10 +972,13 @@ struct Document {
} else if (uk >= ' ') {
if (!selected.g) return NoSel();
Cell *c = selected.ThinExpand(this);
if (!c) return OneCell();
if (!c) {
selected.Wrap(this);
Copy link
Owner

Choose a reason for hiding this comment

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

Does this always result in a single cell?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In Selection::Wrap(Document*) there is xs = ys = 1 so I assume yes.

@aardappel aardappel merged commit 0705386 into aardappel:master Jan 19, 2024
4 checks passed
@tobiolo tobiolo deleted the wrap-as-you-type branch January 19, 2024 21:12
@tobiolo
Copy link
Collaborator Author

tobiolo commented Jan 19, 2024

Thanks for your review!

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