diff --git a/src/scriptfile.c b/src/scriptfile.c index 6dc55579a..109e13e5c 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -215,6 +215,9 @@ estack_sfile(estack_arg_T which UNUSED) if (*class_name != NUL) { // For class methods prepend "." to the function name. + ga_concat(&ga, (char_u *)""); + ga.ga_len += vim_snprintf((char *)ga.ga_data + ga.ga_len, 23, + "%d_", entry->es_info.ufunc->uf_script_ctx.sc_sid); ga_concat(&ga, class_name); ga_append(&ga, '.'); } diff --git a/src/testdir/test_vim9_class.vim b/src/testdir/test_vim9_class.vim index 0bc363930..cf900f763 100644 --- a/src/testdir/test_vim9_class.vim +++ b/src/testdir/test_vim9_class.vim @@ -3741,7 +3741,7 @@ def Test_stack_expansion_with_methods() endclass def F0() - assert_match('\d\+_F\[1\]\.\.C\.M1\[1\]\.\.\d\+_F0\[1\]$', expand('')) + assert_match('\d\+_F\[1\]\.\.\d\+_C\.M1\[1\]\.\.\d\+_F0\[1\]$', expand('')) enddef def F() diff --git a/src/version.c b/src/version.c index abb028b6d..22a1e31a5 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 255, /**/ 254, /**/