Skip to content

Commit 485c9c8

Browse files
committed
Include g:tpipeline_size in debug info
We need this variable occasionally for debugging, so let's remove one roundtrip by including it by default. This patch also adds a test to make sure that debug info is always available in vim and neovim.
1 parent df02671 commit 485c9c8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

autoload/tpipeline/debug.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func tpipeline#debug#info()
3232

3333
let result.native_str = native.str
3434
let result.native_highlights = native.highlights
35+
let result.tpipeline_size = g:tpipeline_size
3536
else
3637
let brand = 'vim'
3738
let version_info = v:versionlong

tests/test_general.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,8 @@ func Test_quoted_strings()
195195
call Read_socket()
196196
call assert_equal(string(g:ReturnNumber()), Strip_hl(s:left))
197197
endfunc
198+
199+
func Test_can_debug()
200+
let info = tpipeline#debug#info()
201+
call assert_true(len(info))
202+
endfunc

0 commit comments

Comments
 (0)