aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/textobject.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-02 17:06:00 +0200
committerGitHub <noreply@github.com>2022-09-02 17:06:00 +0200
commit69456f3414f112853eea1b3214a929d99da556d9 (patch)
treeefd13e7450c658984ed0a71f3cd62f2c67264131 /src/nvim/textobject.c
parent2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9 (diff)
parent49e893f296bca9eef5ff45a3d746c261d055bf10 (diff)
downloadrneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.gz
rneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.bz2
rneovim-69456f3414f112853eea1b3214a929d99da556d9.zip
Merge pull request #20026 from dundargoc/refactor/char_u/7
refactor: replace char_u with char 7: remove `vim_strnsave`
Diffstat (limited to 'src/nvim/textobject.c')
-rw-r--r--src/nvim/textobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/textobject.c b/src/nvim/textobject.c
index a8f4cc7aeb..6863b40599 100644
--- a/src/nvim/textobject.c
+++ b/src/nvim/textobject.c
@@ -1032,7 +1032,7 @@ int current_block(oparg_T *oap, long count, bool include, int what, int other)
/// @return true if the cursor is on a "<aaa>" tag. Ignore "<aaa/>".
static bool in_html_tag(bool end_tag)
{
- char_u *line = get_cursor_line_ptr();
+ char_u *line = (char_u *)get_cursor_line_ptr();
char_u *p;
int c;
int lc = NUL;
@@ -1493,7 +1493,7 @@ static int find_prev_quote(char_u *line, int col_start, int quotechar, char_u *e
bool current_quote(oparg_T *oap, long count, bool include, int quotechar)
FUNC_ATTR_NONNULL_ALL
{
- char_u *line = get_cursor_line_ptr();
+ char_u *line = (char_u *)get_cursor_line_ptr();
int col_end;
int col_start = curwin->w_cursor.col;
bool inclusive = false;