mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0207: stacktrace not shown when debugging
Problem: Stacktrace not shown when debugging. Solution: Set msg_scroll in msg_source(). (closes #10917)
This commit is contained in:
@@ -531,6 +531,7 @@ msg_source(int attr)
|
|||||||
return;
|
return;
|
||||||
recursive = TRUE;
|
recursive = TRUE;
|
||||||
|
|
||||||
|
msg_scroll = TRUE; // this will take more than one line
|
||||||
++no_wait_return;
|
++no_wait_return;
|
||||||
p = get_emsg_source();
|
p = get_emsg_source();
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
@@ -746,7 +747,6 @@ emsg_core(char_u *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
emsg_on_display = TRUE; // remember there is an error message
|
emsg_on_display = TRUE; // remember there is an error message
|
||||||
++msg_scroll; // don't overwrite a previous message
|
|
||||||
attr = HL_ATTR(HLF_E); // set highlight mode for error messages
|
attr = HL_ATTR(HLF_E); // set highlight mode for error messages
|
||||||
if (msg_scrolled != 0)
|
if (msg_scrolled != 0)
|
||||||
need_wait_return = TRUE; // needed in case emsg() is called after
|
need_wait_return = TRUE; // needed in case emsg() is called after
|
||||||
@@ -759,6 +759,7 @@ emsg_core(char_u *s)
|
|||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* Display name and line number for the source of the error.
|
* Display name and line number for the source of the error.
|
||||||
|
* Sets "msg_scroll".
|
||||||
*/
|
*/
|
||||||
msg_source(attr);
|
msg_source(attr);
|
||||||
|
|
||||||
|
@@ -934,11 +934,16 @@ func Test_rightleftcmd()
|
|||||||
set rightleft&
|
set rightleft&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test for the "debug" option
|
" Test for the 'debug' option
|
||||||
func Test_debug_option()
|
func Test_debug_option()
|
||||||
|
" redraw to avoid matching previous messages
|
||||||
|
redraw
|
||||||
set debug=beep
|
set debug=beep
|
||||||
exe "normal \<C-c>"
|
exe "normal \<C-c>"
|
||||||
call assert_equal('Beep!', Screenline(&lines))
|
call assert_equal('Beep!', Screenline(&lines))
|
||||||
|
call assert_equal('line 4:', Screenline(&lines - 1))
|
||||||
|
" only match the final colon in the line that shows the source
|
||||||
|
call assert_match(':$', Screenline(&lines - 2))
|
||||||
set debug&
|
set debug&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
207,
|
||||||
/**/
|
/**/
|
||||||
206,
|
206,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user