Skip to content

Commit 9675082

Browse files
Merge pull request #475 from vim-vdebug/check-for-vim.funcs
only neovim has vim.funcs
2 parents 74b646b + 58c457e commit 9675082

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎python3/vdebug/ui/vimui.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class SourceWindow(interface.Window):
352352
pointer_sign_id = '6145'
353353
breakpoint_sign_id = '6146'
354354
has_sign_priority = vim.vvars['version'] > 801 \
355-
or vim.funcs.has('nvim-0-4-0')
355+
or (hasattr(vim, 'funcs') and vim.funcs.has('nvim-0-4-0'))
356356

357357
def focus(self):
358358
vim.command("1wincmd w")
@@ -704,7 +704,7 @@ class StackWindow(Window):
704704

705705
pointer_sign_id = '6147'
706706
has_sign_priority = vim.vvars['version'] > 801 \
707-
or vim.funcs.has('nvim-0-4-0')
707+
or (hasattr(vim, 'funcs') and vim.funcs.has('nvim-0-4-0'))
708708

709709
def on_create(self):
710710
self.command('inoremap <buffer> <cr> <esc>'

0 commit comments

Comments
 (0)