Commit: patch 9.1.1678: Amiga: cannot handle large undo files

8 views
Skip to first unread message

Christian Brabandt

unread,
Aug 23, 2025, 11:45:14 AMAug 23
to vim...@googlegroups.com
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,
/**/

Florian Rehnisch

unread,
Sep 4, 2025, 2:37:39 AMSep 4
to vim...@googlegroups.com
Am Sat, Aug 23, 2025 at 05:45:03PM +0200 schrieb Christian Brabandt:
> 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

It might make things unneccessarly complicated, but AOS 4.x is only available
for ppc equipped machines. For m68k machines the latest AOS update was 3.2 by
Hyperion only recently AFAIR (funny that there where 3.5 and 3.9 by H&P in the
early 2000..).

Didn't really used my 2 1200er in the last 20 years or so, though.
Reply all
Reply to author
Forward
0 new messages