summaryrefslogtreecommitdiffstats
path: root/autoload/rust.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-04 15:44:43 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-04 15:44:43 +0200
commit664aa988f6d9cdb7b75218666fbe348c85ef8b29 (patch)
tree306173199576430e6133a1ed137bd80bbc2fb01b /autoload/rust.vim
parent3ddca5da461ebfaa82104f82e3cbf19d1c326ade (diff)
downloadvim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.tar.gz
vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.zip
Update
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