let cmd = substitute(cmd, '-u NONE', '--clean', '')
let cmd = substitute(cmd, '--not-a-term', '', '')
+ " Force using utf-8, Vim may pick up something else from the environment.
+ let cmd ..= ' --cmd "set enc=utf8" '
+
" Optionally run Vim under valgrind
" let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd
" | |
" +-----------------------------+
let lines =<< trim END
- only
split
vsplit
let info_window1 = getwininfo()[0]
CheckFeature timers
CheckScreendump
- call writefile([
- \ "call setline(1, range(1, 20))",
- \ "hi Notification ctermbg=lightblue",
- \ "call popup_notification('first notification', {})",
- \], 'XtestNotifications')
+ let lines =<< trim END
+ call setline(1, range(1, 20))
+ hi Notification ctermbg=lightblue
+ call popup_notification('first notification', {})
+ END
+ call writefile(lines, 'XtestNotifications')
let buf = RunVimInTerminal('-S XtestNotifications', #{rows: 10})
call VerifyScreenDump(buf, 'Test_popupwin_notify_01', {})