From 145d9ed0fcedd7bc61a2881a7c8f2d21ed52939f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 12 Nov 2023 08:18:40 +0800 Subject: vim-patch:9.0.2100: CI: test_termdebug fails (#25997) Problem: CI: test_termdebug fails Solution: only test for a changed winlayout, if the window width actually changed Also, include an unrelated comment (which doesn't warrant its own patch number) https://github.com/vim/vim/commit/305127f9f2f6058b4ec071041a2c98f76114a9b0 Co-authored-by: Christian Brabandt --- src/nvim/textformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim') diff --git a/src/nvim/textformat.c b/src/nvim/textformat.c index 105b75f224..564934aa51 100644 --- a/src/nvim/textformat.c +++ b/src/nvim/textformat.c @@ -940,7 +940,7 @@ void format_lines(linenr_T line_count, bool avoid_fex) // length of a line to force formatting: 3 * 'tw' const int max_len = comp_textwidth(true) * 3; - // check for 'q', '2' and '1' in 'formatoptions' + // check for 'q', '2', 'n' and 'w' in 'formatoptions' const bool do_comments = has_format_option(FO_Q_COMS); // format comments int do_comments_list = 0; // format comments with 'n' or '2' const bool do_second_indent = has_format_option(FO_Q_SECOND); -- cgit