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
some fixes for multiple-mode textinput #4273
Conversation
Critic review: https://critic.hoppipolla.co.uk/r/3411 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
Can this be rebased on top of #4267? |
b13c9ef
to
b3f65b1
Compare
Trying to move and squash at the same time doesn't interact too well with critic. Please just move the review without doing any squashing (you can get the old head of the branch from git reflog if you need). |
Note: This time feel free to rebase+squash indiscriminately, it's already passed review :) |
0866678
to
cb24c13
Compare
cb24c13
to
0ff43d4
Compare
I think I messed up the merge, because there were a ton of bugs after I |
0ff43d4
to
ba41237
Compare
self.edit_point.index = 0; | ||
self.adjust_vertical(1, select); | ||
self.adjust_horizontal(adjust - remaining as int, select); | ||
if self.multiline { |
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.
I'm not sure that this re-introduction of the multiline check is needed. Can't we just add the -1 bit to the adjust_horizontal call instead?
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.
Amended and pushed.
ba41237
to
978dd2c
Compare
self.edit_point.index = 0; | ||
self.adjust_vertical(1, select); | ||
self.adjust_horizontal(adjust - remaining as int, select); | ||
let not_last_line: bool = self.lines.len() > self.edit_point.line + 1; |
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.
Let's move this inside the if branch, as that's the only place it's used.
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.
Fixed.
978dd2c
to
4b84572
Compare
Tidy failure: |
4b84572
to
0c851d9
Compare
Cleaned |
#4258