mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 05:16:09 +00:00
vim-patch:8.0.0074
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
95f096030e
Signed-off-by: Michael Schupikov <michael@schupikov.de>
This commit is contained in:

committed by
James McCoy

parent
6ff13d78b7
commit
d5bce42b52
@@ -887,7 +887,7 @@ bool os_setenv_append_path(const char *fname)
|
||||
# define MAX_ENVPATHLEN INT_MAX
|
||||
#endif
|
||||
if (!path_is_absolute_path((char_u *)fname)) {
|
||||
EMSG2(_(e_intern2), "os_setenv_append_path()");
|
||||
internal_error("os_setenv_append_path()");
|
||||
return false;
|
||||
}
|
||||
const char *tail = (char *)path_tail_with_sep((char_u *)fname);
|
||||
|
Reference in New Issue
Block a user