aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 23:11:25 +0200
committerdundargoc <gocdundar@gmail.com>2022-11-19 16:27:10 +0100
commit40f3f75867bf03abfd90e0389a38197a00d37af1 (patch)
treed14642161d70ef658f5b23fea1693e0be9a84804 /src/nvim/api/private/helpers.c
parent6e8ed5abaa9c33d1d78ab7ff5b07dd5bac623a1d (diff)
downloadrneovim-40f3f75867bf03abfd90e0389a38197a00d37af1.tar.gz
rneovim-40f3f75867bf03abfd90e0389a38197a00d37af1.tar.bz2
rneovim-40f3f75867bf03abfd90e0389a38197a00d37af1.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r--src/nvim/api/private/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index b7cd0c82fb..ca8ad16cbf 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -505,7 +505,7 @@ String buf_get_text(buf_T *buf, int64_t lnum, int64_t start_col, int64_t end_col
return rv;
}
- return cstrn_as_string((char *)&bufstr[start_col], (size_t)(end_col - start_col));
+ return cstrn_as_string(&bufstr[start_col], (size_t)(end_col - start_col));
}
void api_free_string(String value)