mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.1346: error for Python exception does not show useful info
Problem: Error for Python exception does not show useful info. Solution: Show the last line instead of the first one. (Ben Jackson, closes #4381)
This commit is contained in:
@@ -412,6 +412,8 @@ write_output(OutputObject *self, PyObject *string)
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
Python_Lock_Vim();
|
||||
if (error)
|
||||
emsg_severe = TRUE;
|
||||
writer((writefn)(error ? emsg : msg), (char_u *)str, len);
|
||||
Python_Release_Vim();
|
||||
Py_END_ALLOW_THREADS
|
||||
|
Reference in New Issue
Block a user