From 11bebd751fa25022238d0502f68cea821590b924 Mon Sep 17 00:00:00 2001 From: Damien Lejay Date: Sat, 23 Aug 2025 17:37:12 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/undo.c | 9 --------- src/version.c | 2 ++ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/undo.c b/src/undo.c index 764912ae61..7f5fb1c4b1 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 3117586be8..a9f345547c 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, /**/