-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[RDY] Fix for lockup #7244 and #7249 #7261
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
Conversation
Travis timed out on the linter, QB failed on ubuntu for a reason I can't discern (there does not seem to be a failed test). |
nmatch = curbuf->b_ml.ml_line_count - sub_firstlnum + 1; | ||
skip_match = true; | ||
} | ||
|
||
// 3. Substitute the string. During 'inccommand' preview only do this if | ||
// there is a replace pattern. |
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.
does that comment need to be moved?
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.
It's stil in the right place I'd say, but it mainly belongs to the else if
clause... Should be changed, you're right.
sub_firstline = vim_strsave((char_u *)""); | ||
copycol = 0; | ||
} | ||
} else if (!preview || has_second_delim) { |
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.
instead of else-if, the usual way in this function is goto skip
. That allows the structure to be more "chunked" and commentable. I'll change this in the merge.
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.
Sure, thanks.
see 2736f0c Not sure if it's better, but I guess using a macro at least gives a hint for later, if someone has a better idea in the future. |
merged |
Fixes #7244
Ref #7249