|
6 | 6 | let s:cpo_save = &cpo
|
7 | 7 | set cpo&vim
|
8 | 8 |
|
| 9 | +scriptencoding utf-8 |
| 10 | + |
9 | 11 | let s:buf_nr = -1
|
10 | 12 |
|
11 | 13 | function! go#doc#OpenBrowser(...) abort
|
@@ -61,10 +63,14 @@ function! s:GodocView(newposition, position, content) abort
|
61 | 63 | if exists('*popup_atcursor') && exists('*popup_clear')
|
62 | 64 | call popup_clear()
|
63 | 65 |
|
| 66 | + let borderchars = ['-', '|', '-', '|', '+', '+', '+', '+'] |
| 67 | + if &encoding == "utf-8" |
| 68 | + let borderchars = ['─', '│', '─', '│', '┌', '┐', '┘', '└'] |
| 69 | + endif |
64 | 70 | call popup_atcursor(split(a:content, '\n'), {
|
65 | 71 | \ 'padding': [1, 1, 1, 1],
|
66 |
| - \ 'borderchars': ['-','|','-','|','+','+','+','+'], |
67 |
| - \ "border": [1, 1, 1, 1], |
| 72 | + \ 'borderchars': borderchars, |
| 73 | + \ 'border': [1, 1, 1, 1], |
68 | 74 | \ })
|
69 | 75 | elseif has('nvim') && exists('*nvim_open_win')
|
70 | 76 | let lines = split(a:content, '\n')
|
|
0 commit comments