diff options
Diffstat (limited to 'src/nvim/textformat.c')
-rw-r--r-- | src/nvim/textformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/textformat.c b/src/nvim/textformat.c index 1722bcc968..01567c9e01 100644 --- a/src/nvim/textformat.c +++ b/src/nvim/textformat.c @@ -1017,7 +1017,7 @@ void format_lines(linenr_T line_count, bool avoid_fex) // and this line has a line comment after some text, the // paragraph doesn't really end. if (next_leader_flags == NULL - || strncmp(next_leader_flags, "://", 3) != 0 + || strncmp(next_leader_flags, S_LEN("://")) != 0 || check_linecomment(get_cursor_line_ptr()) == MAXCOL) { is_end_par = true; } |