summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-07-31 18:00:10 +0100
committerBram Moolenaar <Bram@vim.org>2022-07-31 18:00:10 +0100
commitbe33e5e4a979811df84e19995b94655128f31046 (patch)
tree5fec71220b796db6fd0c660eac9929bf67ef195c
parentb7963df98f9dbbb824713acad2f47c9989fcf8f3 (diff)
patch 9.0.0122: breakindent test failsv9.0.0122
Problem: Breakindent test fails. Solution: Fix condition.
-rw-r--r--src/charset.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c
index b55468fbdc..72838d0f95 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -771,7 +771,7 @@ win_linetabsize(win_T *wp, linenr_T lnum, char_u *line, colnr_T len)
chartabsize_T cts;
init_chartabsize_arg(&cts, wp, lnum, 0, line, line);
- cts.cts_with_trailing = len = MAXCOL;
+ cts.cts_with_trailing = len == MAXCOL;
for ( ; *cts.cts_ptr != NUL && (len == MAXCOL || cts.cts_ptr < line + len);
MB_PTR_ADV(cts.cts_ptr))
cts.cts_vcol += win_lbr_chartabsize(&cts, NULL);
diff --git a/src/version.c b/src/version.c
index af52ab853e..aed14f067a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 122,
+/**/
121,
/**/
120,