Patch 9.0.0227

5 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 19, 2022, 8:18:02 AM8/19/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages