aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-06-28 11:31:54 +0200
committerGitHub <noreply@github.com>2022-06-28 02:31:54 -0700
commit014a88799a1d175ad121c520c9cc5bd0bb2d8813 (patch)
treedb5d1acdc8ea6fe58f78b1aabc62b3ee5fc7875a /src/nvim/indent.c
parent7e1cf6b7642f0ab14656d853d44f4409b2987b9c (diff)
downloadrneovim-014a88799a1d175ad121c520c9cc5bd0bb2d8813.tar.gz
rneovim-014a88799a1d175ad121c520c9cc5bd0bb2d8813.tar.bz2
rneovim-014a88799a1d175ad121c520c9cc5bd0bb2d8813.zip
refactor: replace char_u #18429
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r--src/nvim/indent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index d71b3adb5c..8a5b4cbf0f 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -75,7 +75,7 @@ int get_indent_str(const char_u *ptr, int ts, bool list)
} else {
// In list mode, when tab is not set, count screen char width
// for Tab, displays: ^I
- count += ptr2cells(ptr);
+ count += ptr2cells((char *)ptr);
}
} else if (*ptr == ' ') {
// Count a space for one.
@@ -101,7 +101,7 @@ int get_indent_str_vtab(const char_u *ptr, long ts, long *vts, bool list)
} else {
// In list mode, when tab is not set, count screen char width
// for Tab, displays: ^I
- count += ptr2cells(ptr);
+ count += ptr2cells((char *)ptr);
}
} else if (*ptr == ' ') {
count++; // count a space for one
@@ -481,7 +481,7 @@ int get_breakindent_win(win_T *wp, char_u *line)
// indent minus the length of the showbreak string
if (wp->w_briopt_sbr) {
- bri -= vim_strsize(get_showbreak_value(wp));
+ bri -= vim_strsize((char *)get_showbreak_value(wp));
}
// never indent past left window margin