aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/textformat.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 23:11:25 +0200
committerDundar Göc <gocdundar@gmail.com>2022-08-29 15:48:56 +0200
commit58f30a326f34319801e7921f32c83e8320d85f6c (patch)
treec0afa78a82826ad837869b56dc3493b55d3b4195 /src/nvim/textformat.c
parent92bc11a891538e5c306915bffef437f097572d09 (diff)
downloadrneovim-58f30a326f34319801e7921f32c83e8320d85f6c.tar.gz
rneovim-58f30a326f34319801e7921f32c83e8320d85f6c.tar.bz2
rneovim-58f30a326f34319801e7921f32c83e8320d85f6c.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/textformat.c')
-rw-r--r--src/nvim/textformat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/textformat.c b/src/nvim/textformat.c
index b2bfca08ed..125146f712 100644
--- a/src/nvim/textformat.c
+++ b/src/nvim/textformat.c
@@ -121,7 +121,7 @@ void internal_format(int textwidth, int second_indent, int flags, bool format_on
leader_len = get_leader_len((char *)line, NULL, false, true);
if (leader_len == 0 && curbuf->b_p_cin) {
// Check for a line comment after code.
- int comment_start = check_linecomment(line);
+ int comment_start = check_linecomment((char *)line);
if (comment_start != MAXCOL) {
leader_len = get_leader_len((char *)line + comment_start, NULL, false, true);
if (leader_len != 0) {
@@ -411,7 +411,7 @@ void internal_format(int textwidth, int second_indent, int flags, bool format_on
// add the additional whitespace needed after the
// comment leader for the numbered list.
for (int i = 0; i < padding; i++) {
- ins_str((char_u *)" ");
+ ins_str(" ");
}
changed_bytes(curwin->w_cursor.lnum, leader_len);
} else {
@@ -1026,7 +1026,7 @@ void format_lines(linenr_T line_count, bool avoid_fex)
// paragraph doesn't really end.
if (next_leader_flags == NULL
|| STRNCMP(next_leader_flags, "://", 3) != 0
- || check_linecomment(get_cursor_line_ptr()) == MAXCOL) {
+ || check_linecomment((char *)get_cursor_line_ptr()) == MAXCOL) {
is_end_par = true;
}
}