]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1678: Amiga: cannot handle large undo files v9.1.1678
authorDamien Lejay <damien@lejay.be>
Sat, 23 Aug 2025 15:37:12 +0000 (17:37 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 23 Aug 2025 15:37:12 +0000 (17:37 +0200)
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 <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/undo.c
src/version.c

index 764912ae61c3d2ebd1982dc4d24c321a705b0add..7f5fb1c4b1b182c7bfd144816eb21193e3524fa4 100644 (file)
@@ -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
      */
index 3117586be860bc224260197d213efc9aaa1fb8c1..a9f345547c4b7a2b5dec87efe20fd63163d9ce2d 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1678,
 /**/
     1677,
 /**/