aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2021-01-06 12:39:00 +0900
committererw7 <erw7.github@gmail.com>2021-01-06 12:43:58 +0900
commit6249059d4bf263df4b6621fe837fe60f3796ab86 (patch)
treeada1ad6406afc2253ef665c41e97eabf6b15b78e
parentb77e21b35c07cbe6b5a9c5fa11255bc61be05a41 (diff)
downloadrneovim-6249059d4bf263df4b6621fe837fe60f3796ab86.tar.gz
rneovim-6249059d4bf263df4b6621fe837fe60f3796ab86.tar.bz2
rneovim-6249059d4bf263df4b6621fe837fe60f3796ab86.zip
checkhealth: fix terminfo problems on Windows
fixes #13415
-rw-r--r--runtime/autoload/health/nvim.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim
index 97da3b1e7e..0bb343e198 100644
--- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim
@@ -247,6 +247,10 @@ function! s:check_terminal() abort
let kdch1_entry = matchstr(out, 'key_dc=[^,[:space:]]*')
if v:shell_error
+ \ && (!has('win32')
+ \ || empty(matchstr(out,
+ \ 'infocmp: couldn''t open terminfo file .\+'
+ \ ..'\%(conemu\|vtpcon\|win32con\)')))
call health#report_error('command failed: '.cmd."\n".out)
else
call health#report_info('key_backspace (kbs) terminfo entry: '