let rows = 20
let buf = RunVimInTerminal('', #{rows: rows, no_clean: 1})
call TermWait(buf)
- call term_sendkeys(buf, ":echo \$MYVIMRC\<cr>")
+ call term_sendkeys(buf, ":echo \$MYVIMRC[-30:]\<cr>")
call WaitForAssert({-> assert_match('XfakeHOME/\.vimrc', term_getline(buf, rows))})
call term_sendkeys(buf, ":call filter(g:, {idx, _ -> idx =~ '^rc'})\<cr>")
call TermWait(buf)
let buf = RunVimInTerminal('', #{rows: rows, no_clean: 1})
call TermWait(buf)
- call term_sendkeys(buf, ":echo \$MYVIMRC\<cr>")
+ call term_sendkeys(buf, ":echo \$MYVIMRC[-30:]\<cr>")
call WaitForAssert({-> assert_match('XfakeHOME/\.vim/vimrc', term_getline(buf, rows))})
call term_sendkeys(buf, ":call filter(g:, {idx, _ -> idx =~ '^rc'})\<cr>")
call TermWait(buf)
let buf = RunVimInTerminal('', #{rows: rows, no_clean: 1})
call TermWait(buf)
- call term_sendkeys(buf, ":echo \$MYVIMRC\<cr>")
+ call term_sendkeys(buf, ":echo \$MYVIMRC[-30:]\<cr>")
call WaitForAssert({-> assert_match('XfakeHOME/\.config/vim/vimrc', term_getline(buf, rows))})
call term_sendkeys(buf, ":call filter(g:, {idx, _ -> idx =~ '^rc'})\<cr>")
call TermWait(buf)
call TermWait(buf)
call term_sendkeys(buf, ":redraw!\<cr>")
call TermWait(buf)
- call term_sendkeys(buf, ":echo \$MYVIMRC\<cr>")
- call WaitForAssert({-> assert_match('xdg/vim/vimrc', term_getline(buf, rows))})
+ call term_sendkeys(buf, ":echo \$MYVIMRC[-30:]\<cr>")
+ call WaitForAssert({-> assert_match('XfakeHOME/xdg/vim/vimrc', term_getline(buf, rows))})
call term_sendkeys(buf, ":call filter(g:, {idx, _ -> idx =~ '^rc'})\<cr>")
call TermWait(buf)
call term_sendkeys(buf, ":let g:\<cr>")