patch 8.1.1846: inconsistently using GetVimCommand() and v:progpath
Problem: Inconsistently using GetVimCommand() and v:progpath. (Daniel
Hahler)
Solution: Use GetVimCommand(). (closes #4806)
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim
index 985bbf4..e80e85f 100644
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -127,10 +127,9 @@
let test_call = 'Can you hear me?'
let test_response = 'Yes, I can.'
- let vim_exe = exepath(v:progpath)
+ let vim_exe = GetVimCommand()
let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;'
- \ . vim_exe
- \ . ' -u NONE -U NONE --noplugin --not-a-term -c ''%s'''
+ \ . vim_exe . ' --noplugin --not-a-term -c ''%s'''
" Ignore the "failed to create input context" error.
let cmd = 'call test_ignore_error("E285") | '
\ . 'gui -f | '