Skip to content

Commit a1852d9

Browse files
authored
Merge pull request #2240 from bhcleek/gui-hover-newlines
use newlines in the hover window when possible in the GUI
2 parents ae4e146 + 0957d8a commit a1852d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/go/tool.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ endfunction
122122
function! s:balloon(msg)
123123
let l:msg = a:msg
124124
if has('balloon_eval')
125-
let l:msg = join(a:msg)
125+
if has('balloon_multiline')
126+
let l:msg = join(a:msg, "\n")
127+
else
128+
let l:msg = substitute(join(map(deepcopy(a:msg), 'substitute(v:val, "\t", "", "")'), '; '), '{;', '{', '')
129+
endif
126130
endif
127131

128132
call balloon_show(l:msg)

0 commit comments

Comments
 (0)