Patch 9.0.0207
Problem:    Stacktrace not shown when debugging.
Solution:   Set msg_scroll in msg_source(). (closes #10917)
Files:      src/message.c, src/testdir/test_options.vim


*** ../vim-9.0.0206/src/message.c       2022-08-14 14:16:07.995582211 +0100
--- src/message.c       2022-08-14 14:48:05.835816909 +0100
***************
*** 531,536 ****
--- 531,537 ----
        return;
      recursive = TRUE;
  
+     msg_scroll = TRUE;  // this will take more than one line
      ++no_wait_return;
      p = get_emsg_source();
      if (p != NULL)
***************
*** 746,752 ****
      }
  
      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
      if (msg_scrolled != 0)
        need_wait_return = TRUE;    // needed in case emsg() is called after
--- 747,752 ----
***************
*** 759,764 ****
--- 759,765 ----
  #endif
      /*
       * Display name and line number for the source of the error.
+      * Sets "msg_scroll".
       */
      msg_source(attr);
  
*** ../vim-9.0.0206/src/testdir/test_options.vim        2022-08-09 
12:53:09.911689930 +0100
--- src/testdir/test_options.vim        2022-08-14 14:40:23.284948014 +0100
***************
*** 934,944 ****
    set rightleft&
  endfunc
  
! " Test for the "debug" option
  func Test_debug_option()
    set debug=beep
    exe "normal \<C-c>"
    call assert_equal('Beep!', Screenline(&lines))
    set debug&
  endfunc
  
--- 934,949 ----
    set rightleft&
  endfunc
  
! " Test for the 'debug' option
  func Test_debug_option()
+   " redraw to avoid matching previous messages
+   redraw
    set debug=beep
    exe "normal \<C-c>"
    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&
  endfunc
  
*** ../vim-9.0.0206/src/version.c       2022-08-14 14:16:08.007582109 +0100
--- src/version.c       2022-08-14 14:48:57.971705993 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     207,
  /**/

-- 
A vacation is a period of travel during which you find that you
took twice as many clothes and half as much money as you needed.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220814135030.AC98B1C04B1%40moolenaar.net.

Raspunde prin e-mail lui