diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-23 13:10:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-23 13:10:48 +0100 |
commit | 7e667788150be617aeac42b0d668618ac33ab9da (patch) | |
tree | 192254db3546cae9e753acdab37b326f7cfcf693 /src/textformat.c | |
parent | 6d24b4ff69913270ce1e5267dd6bd8454f75e2b9 (diff) | |
download | vim-git-7e667788150be617aeac42b0d668618ac33ab9da.tar.gz |
patch 8.2.5008: when 'formatoptions' contains "/" wrongly wrapping commentv8.2.5008
Problem: When 'formatoptions' contains "/" wrongly wrapping a long trailing
comment.
Solution: Pass the OPENLINE_FORMAT flag.
Diffstat (limited to 'src/textformat.c')
-rw-r--r-- | src/textformat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textformat.c b/src/textformat.c index a6a3b4dc6..7e32c1ccc 100644 --- a/src/textformat.c +++ b/src/textformat.c @@ -371,6 +371,7 @@ internal_format( open_line(FORWARD, OPENLINE_DELSPACES + OPENLINE_MARKFIX + (fo_white_par ? OPENLINE_KEEPTRAIL : 0) + (do_comments ? OPENLINE_DO_COM : 0) + + OPENLINE_FORMAT + ((flags & INSCHAR_COM_LIST) ? OPENLINE_COM_LIST : 0) , ((flags & INSCHAR_COM_LIST) ? second_indent : old_indent), &did_do_comment); |