mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(diff): use mmfile_t in linematch
Problem: Linematch used to use strchr to navigate a string, however strchr does not supoprt embedded NULs. Solution: Use `mmfile_t` instead of `char *` in linematch and introduce `strnchr()`. Also remove heap allocations from `matching_char_iwhite()` Fixes: #30505
This commit is contained in:
@@ -881,6 +881,7 @@ def CheckIncludes(filename, lines, error):
|
||||
"nvim/func_attr.h",
|
||||
"termkey/termkey.h",
|
||||
"vterm/vterm.h",
|
||||
"xdiff/xdiff.h",
|
||||
]
|
||||
|
||||
for i in check_includes_ignore:
|
||||
|
Reference in New Issue
Block a user