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

bytetrack: fix J with trailing whitespace #12957

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vigoux
Copy link
Member

@vigoux vigoux commented Sep 21, 2020

Attempt to fix this issue we had for a while, when joining lines with trailing whitespace on the line where you hit J.

@@ -289,7 +289,12 @@ void buf_updates_send_splice(
int new_row, colnr_T new_col, bcount_t new_byte)
{
if (!buf_updates_active(buf)
|| (old_byte == 0 && new_byte == 0)) {
|| (old_row == 0
Copy link
Member

Choose a reason for hiding this comment

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

this a bit weird, ideally we want to assert that old_byte == 0 iff old_row == 0 && old_col == 0 (and :s/old/new/g )

Copy link
Member

Choose a reason for hiding this comment

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

though we can do this in the test layer, to avoid unpleasant crashes for now (can escalate later)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh I see, removing from this PR then

@vigoux vigoux force-pushed the byte-join-trailing branch 7 times, most recently from 16600cf to 03f6e8c Compare September 23, 2020 19:33
@vigoux
Copy link
Member Author

vigoux commented Sep 23, 2020

This PR does not solve the issue I am having, for which I lack a repro for now, I am digging into it though, as I really think this needs a fix.

@zeertzjq zeertzjq added the needs:response waiting for reply from the author label Jan 2, 2022
@zeertzjq zeertzjq removed the needs:response waiting for reply from the author label Nov 3, 2022
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.

None yet

3 participants