Skip to content

Commit 987eda1

Browse files
committed
Bug fix: Only enable tooltips when supported
Thanks to Micheal for the bug report!
1 parent 26e6f35 commit 987eda1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

autoload/xolox/luainspect.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ function! xolox#luainspect#auto_enable() " {{{1
1515
nnoremap <buffer> <silent> <F2> :call xolox#luainspect#make_request('rename')<CR>
1616
nnoremap <buffer> <silent> gd :call xolox#luainspect#make_request('goto')<CR>
1717
" Enable balloon evaluation / dynamic tool tips.
18-
setlocal ballooneval balloonexpr=LuaInspectToolTip()
18+
if has('balloon_eval')
19+
setlocal ballooneval balloonexpr=LuaInspectToolTip()
20+
endif
1921
" Install automatic commands to update the highlighting.
2022
for event in split(g:lua_inspect_events, ',')
2123
execute 'autocmd!' event '<buffer> LuaInspect'

plugin/luainspect.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Author: Peter Odding <peter@peterodding.com>
33
" Last Change: May 25, 2011
44
" URL: http://peterodding.com/code/vim/lua-inspect/
5-
" Version: 0.4.9
5+
" Version: 0.4.10
66
" License: MIT
77

88
" Support for automatic update using the GLVS plug-in.

0 commit comments

Comments
 (0)