patch 9.2.0954: u_read_undo() can be improved (after 9.2.0935)
Commit:
https://github.com/vim/vim/commit/ecfea491aa964311a42f888277da7911c9d6900d
Author: Hirohito Higashi <
h.eas...@gmail.com>
Date: Wed Aug 12 20:21:43 2026 +0000
patch 9.2.0954: u_read_undo() can be improved (after 9.2.0935)
Problem: u_read_undo() has comments that do not add anything to what
the code says (afte rv9.2.0935).
Solution: Drop the redundant comments (Hirohito Higashi).
related: #20942
closes: #21028
Co-Authored-By: Claude Opus 5 (1M context) <
nor...@anthropic.com>
Signed-off-by: Hirohito Higashi <
h.eas...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/undo.c b/src/undo.c
index 5dc154cc2..24407edaf 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -1817,8 +1817,7 @@ theend:
}
/*
- * Compare undo headers on the sequence number, for sorting uhp_table in
- * u_read_undo().
+ * Compare undo headers on the sequence number, for sorting uhp_table.
*/
static int
uhp_seq_cmp(const void *v1, const void *v2)
@@ -2107,9 +2106,7 @@ u_read_undo(char_u *name, char_u *hash, char_u *orig_name UNUSED)
// We have put all of the headers into a table. Each header stores the
// sequence numbers of the headers it links to; resolve those into
- // pointers. Sort the table on uh_seq once, so that every lookup is a
- // binary search instead of a linear scan, which would be quadratic
- // overall. Every entry is non-NULL: a header that failed to
+ // pointers. Every entry is non-NULL: a header that failed to
// unserialize or a count mismatch was an error above.
if (num_head > 0)
qsort(uhp_table, (size_t)num_head, sizeof(u_header_T *), uhp_seq_cmp);
diff --git a/src/version.c b/src/version.c
index 656e08808..1955674ae 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 954,
/**/
953,
/**/