# HG changeset patch # User Bram Moolenaar # Date 1660912203 -7200 # Node ID 455e7588b97931171483b694d609ad8030837976 # Parent 7749e69fb61f706726d8ac8fb22c4d858b07b59a patch 9.0.0227: cannot read error message when abort() is called Commit: https://github.com/vim/vim/commit/213e70e284b0975dd34525e94e59e26811097c72 Author: Bram Moolenaar Date: Fri Aug 19 13:17:21 2022 +0100 patch 9.0.0227: cannot read error message when abort() is called Problem: Cannot read error message when abort() is called. Solution: Output a newline before calling abort(). diff --git a/src/message.c b/src/message.c --- a/src/message.c +++ b/src/message.c @@ -831,6 +831,8 @@ iemsg(char *s) 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,10 +865,12 @@ siemsg(const char *s, ...) va_end(ap); emsg_core(IObuff); } +# ifdef ABORT_ON_INTERNAL_ERROR + msg_putchar('\n'); // avoid overwriting the error message + out_flush(); + abort(); +# endif } -# ifdef ABORT_ON_INTERNAL_ERROR - abort(); -# endif } #endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -732,6 +732,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 227, +/**/ 226, /**/ 225,