Skip to content

Commit

Permalink
fix: minor adjustment to os info
Browse files Browse the repository at this point in the history
refer: #2220
  • Loading branch information
lervag committed Oct 25, 2021
1 parent 3bbd6ea commit 3bc4ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/vimtex/info.vim
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ function! s:get_os_info() abort " {{{1
endif

try
let l:name = matchstr(s:win_info[1], ':\s*\zs.*')
let l:version = matchstr(s:win_info[2], ':\s*\zs.*')
let l:name = vimtex#util#trim(matchstr(s:win_info[1], ':\s*\zs.*'))
let l:version = vimtex#util#trim(matchstr(s:win_info[2], ':\s*\zs.*'))
return l:name . ' (' . l:version . ')'
catch
return 'Windows (' . string(s:win_info) . ')'
Expand Down

0 comments on commit 3bc4ee9

Please sign in to comment.