summaryrefslogtreecommitdiffstats
path: root/autoload/rust.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/rust.vim')
-rw-r--r--autoload/rust.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/rust.vim b/autoload/rust.vim
index c513f03f..7aff515b 100644
--- a/autoload/rust.vim
+++ b/autoload/rust.vim
@@ -509,7 +509,7 @@ function! rust#Test(all, options) abort
return rust#Run(1, '--test ' . a:options)
endif
- if exists(':terminal')
+ if has('terminal') || has('nvim')
let cmd = 'terminal '
else
let cmd = '!'
@@ -530,7 +530,7 @@ function! rust#Test(all, options) abort
let func_name = s:SearchTestFunctionNameUnderCursor()
if func_name ==# ''
echohl ErrorMsg
- echo 'No test function was found under the cursor. Please add ! to command if you want to run all tests'
+ echomsg 'No test function was found under the cursor. Please add ! to command if you want to run all tests'
echohl None
return
endif