hadronized / hop.nvim

Neovim motions on speed!
Other
2.47k stars 137 forks source link

Fix null character line #371

Open complexusprada opened 1 year ago

complexusprada commented 1 year ago

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 commented 1 year ago

null_character.txt file with null characters