summaryrefslogtreecommitdiffstats
path: root/src/testdir/term_util.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-03-07 21:05:04 +0000
committerBram Moolenaar <Bram@vim.org>2023-03-07 21:05:04 +0000
commit7ac5023a5f1a37baafbe1043645f97ba3443d9f6 (patch)
tree44d5a63f1edb33016aba3843cafa7278f3a3ddcb /src/testdir/term_util.vim
parent960dcbd098c761dd623bec9492d5391ff6e8dceb (diff)
patch 9.0.1392: using NULL pointer with nested :open commandv9.0.1392
Problem: Using NULL pointer with nested :open command. Solution: Check that ccline.cmdbuff is not NULL.
Diffstat (limited to 'src/testdir/term_util.vim')
-rw-r--r--src/testdir/term_util.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim
index 0f03731845..88e2b33d08 100644
--- a/src/testdir/term_util.vim
+++ b/src/testdir/term_util.vim
@@ -55,6 +55,7 @@ endfunc
" "cols" - width of the terminal window (max. 78)
" "statusoff" - number of lines the status is offset from default
" "wait_for_ruler" - if zero then don't wait for ruler to show
+" "no_clean" - if non-zero then remove "--clean" from the command
func RunVimInTerminal(arguments, options)
" If Vim doesn't exit a swap file remains, causing other tests to fail.
" Remove it here.
@@ -91,6 +92,10 @@ func RunVimInTerminal(arguments, options)
let cmd = GetVimCommandCleanTerm() .. reset_u7 .. a:arguments
+ if get(a:options, 'no_clean', 0)
+ let cmd = substitute(cmd, '--clean', '', '')
+ endif
+
let options = #{curwin: 1}
if &termwinsize == ''
let options.term_rows = rows