aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/treesitter.c
diff options
context:
space:
mode:
authorJames Tirta Halim <tirtajames45@gmail.com>2024-06-03 11:10:30 +0700
committerLewis Russell <me@lewisr.dev>2024-06-04 09:42:19 +0100
commit200e7ad1578619e78c664bd0c6be024168433412 (patch)
treec2387df2811637efb1f743693ed6b8ca172aeb74 /src/nvim/lua/treesitter.c
parent4b3845be2e497f96f855782d52dd1d02a4cabb6f (diff)
downloadrneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.gz
rneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.bz2
rneovim-200e7ad1578619e78c664bd0c6be024168433412.zip
fixup: apply the change on more files
Diffstat (limited to 'src/nvim/lua/treesitter.c')
-rw-r--r--src/nvim/lua/treesitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c
index e87cf756a8..b13a162074 100644
--- a/src/nvim/lua/treesitter.c
+++ b/src/nvim/lua/treesitter.c
@@ -279,7 +279,7 @@ static const char *input_cb(void *payload, uint32_t byte_index, TSPoint position
memcpy(buf, line + position.column, tocopy);
// Translate embedded \n to NUL
- memchrsub(buf, '\n', '\0', tocopy);
+ memchrsub(buf, '\n', NUL, tocopy);
*bytes_read = (uint32_t)tocopy;
if (tocopy < BUFSIZE) {
// now add the final \n. If it didn't fit, input_cb will be called again