-
Notifications
You must be signed in to change notification settings - Fork 567
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
added EditAction::SelectNone #1092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay!
I think this is equivalent to moving the selection to the start of the document, and that should be handled by a variant of MoveTo()
; StartOfDocument
or BeginningOfDocument
should be one of the Movement
variants.
If you'd like to update this with that change I would be happy to merge. :)
@cmyr okay, I got it. |
@sysint64 ping on this? |
@cmyr I'm still here, just a lot of work, I'll work on my PR's on the following weekends. |
@cmyr does |
It may be the same now, but it shouldn't be the same when we are handling multi-line text correctly; if it is that's likely a bug in the current implementation. |
772546a
to
46e07a3
Compare
@cmyr Sorry for the delay, I have implemented two methods - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! a few notes inline.
It's also worth mentioning that this won't currently work correctly when we have linebreaking implemented, but I think it's reasonable to merge anyway and we can worry about that later.
42d5381
to
2716f2c
Compare
@cmyr fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay apologies, I was a little brain dead during my previous review. There's still a naming issue here, and a larger issue with the naming of the movement types themselves. I'd like to at least get the naming correct here, and we can address the larger issue separately. Sorry for the run-around!
dc9aaa0
to
10d6203
Compare
@cmyr it looks like there is an error on the master branch located in |
this is what I get after rebase:
|
fixed here: #1187 |
6101f97
to
326bcea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
this PR adds a new edit action SelectNone as the opposite of SelectAll.