]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1536: tests: test_plugin_comment uses wrong :Check command v9.1.1536
authorChristian Brabandt <cb@256bit.org>
Thu, 10 Jul 2025 18:40:09 +0000 (20:40 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 10 Jul 2025 18:40:09 +0000 (20:40 +0200)
commit48d7f5b5a38b3d046f092adca33d047c2bd39eb1
treecb10b60fbd551fc778b1361146b4ccbe181a94e0
parentb7b7fa04bf79f2f13ed6e789b76262753da31dde
patch 9.1.1536: tests: test_plugin_comment uses wrong :Check command

Problem:  tests: test_plugin_comment.vim uses :CheckScreenDump check but
          doesn't actually use a screen dump.
Solution: Use :CheckRunVimInTerminal instead, remove a few empty lines.

test_plugin_comment.vim uses :CheckScreenDump to test for the screen
dump feature in each single test case.

However, since we are not actually using any screen dumps, it would be
more correct to use :CheckRunVimInTerminal, since this is the actual
command that we want to run.

And instead of verifying this for each single test, let's just do it
once when sourcing the file. While doing this, also remove some white
spaces.

closes: #17711

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_plugin_comment.vim
src/version.c