aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/textformat.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-29 18:46:38 +0200
committerGitHub <noreply@github.com>2022-08-29 18:46:38 +0200
commit68efac36831fca40c0a15365d0f0fc2d38c43708 (patch)
tree8494afd25e715b063f7a802584a007a8c62be53e /src/nvim/textformat.c
parent126fe7fbc9c88c412c8067d9d146d998baf6dd47 (diff)
parent58f30a326f34319801e7921f32c83e8320d85f6c (diff)
downloadrneovim-68efac36831fca40c0a15365d0f0fc2d38c43708.tar.gz
rneovim-68efac36831fca40c0a15365d0f0fc2d38c43708.tar.bz2
rneovim-68efac36831fca40c0a15365d0f0fc2d38c43708.zip
Merge pull request #19973 from dundargoc/refactor/char_u/3
refactor: replace char_u with char 3: revenge of the unsigned
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;
}
}