patch 9.1.1678: Amiga: cannot handle large undo files

Commit: 
https://github.com/vim/vim/commit/11bebd751fa25022238d0502f68cea821590b924
Author: Damien Lejay <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1upqQR-00F7pf-Mh%40256bit.org.

Raspunde prin e-mail lui