Patch 9.0.0227
Problem:    Cannot read error message when abort() is called.
Solution:   Output a newline before calling abort().
Files:      src/message.c


*** ../vim-9.0.0226/src/message.c       2022-08-14 14:49:46.351601248 +0100
--- src/message.c       2022-08-19 13:16:56.722591470 +0100
***************
*** 831,836 ****
--- 831,838 ----
        emsg_core((char_u *)s);
  #if defined(ABORT_ON_INTERNAL_ERROR) && defined(FEAT_EVAL)
        set_vim_var_string(VV_ERRMSG, (char_u *)s, -1);
+       msg_putchar('\n');  // avoid overwriting the error message
+       out_flush();
        abort();
  #endif
      }
***************
*** 863,872 ****
            va_end(ap);
            emsg_core(IObuff);
        }
-     }
  # ifdef ABORT_ON_INTERNAL_ERROR
!     abort();
  # endif
  }
  #endif
  
--- 865,876 ----
            va_end(ap);
            emsg_core(IObuff);
        }
  # ifdef ABORT_ON_INTERNAL_ERROR
!       msg_putchar('\n');  // avoid overwriting the error message
!       out_flush();
!       abort();
  # endif
+     }
  }
  #endif
  
*** ../vim-9.0.0226/src/version.c       2022-08-18 15:22:05.600871575 +0100
--- src/version.c       2022-08-19 13:15:09.194834541 +0100
***************
*** 733,734 ****
--- 733,736 ----
  {   /* Add new patch number below this line */
+ /**/
+     227,
  /**/

-- 
The early bird gets the worm. If you want something else for
breakfast, get up later.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220819121752.200591C0B17%40moolenaar.net.

Raspunde prin e-mail lui