patch 9.1.1678: Amiga: cannot handle large undo files
Commit:
https://github.com/vim/vim/commit/11bebd751fa25022238d0502f68cea821590b924
Author: Damien Lejay <
dam...@lejay.be>
Date: Sat Aug 23 17:37:12 2025 +0200
patch 9.1.1678: Amiga: cannot handle large undo files
Problem: Amiga: cannot handle large undo files
Solution: Remove the existing restriction as it was only valid for
classic Amiga (Damien Lejay).
It seems that this block was only relevant for classic AmigaOS (< 32K
alloc limit). And it seems to no longer apply: AmigaOS 4.0 switched to
a slab allocator memory system.
closes: #18072
Signed-off-by: Damien Lejay <
dam...@lejay.be>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/undo.c b/src/undo.c
index 764912ae6..7f5fb1c4b 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -687,15 +687,6 @@ u_savecommon(
u_getbot();
}
-#if !defined(UNIX) && !defined(MSWIN)
- /*
- * With Amiga we can't handle big undo's, because
- * then u_alloc_line would have to allocate a block larger than 32K
- */
- if (size >= 8000)
- goto nomem;
-#endif
-
/*
* add lines in front of entry list
*/
diff --git a/src/version.c b/src/version.c
index 3117586be..a9f345547 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1678,
/**/
1677,
/**/