Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Fix null character line #371

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

Conversation

complexusprada
Copy link

If a line contains a null character (^@), it breaks the following functions:

vim.fn.strdisplaywidth(line_context.line)
end_col = vim.fn.byteidx(cur_line, vim.fn.charidx(cur_line, cur_col) + 1),

added an early return if a line contains blob

@complexusprada complexusprada changed the title null character line error fix Fix null character line Jul 8, 2023
@complexusprada
Copy link
Author

null_character.txt
file with null characters

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant