Mercurial > vim
comparison src/testdir/test_partial.vim @ 8714:a5224eeb3546 v7.4.1646
commit https://github.com/vim/vim/commit/4c90861e9f864eab94f043c432acff508396ed62
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 24 21:58:12 2016 +0100
patch 7.4.1646
Problem: Using Python vim.bindeval() on a partial doesn't work. (Nikolai
Pavlov)
Solution: Add VAR_PARTIAL support in Python.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 24 Mar 2016 22:00:04 +0100 |
parents | 65130a9d3386 |
children | b76195a1e38e |
comparison
equal
deleted
inserted
replaced
8713:c1752d081a9a | 8714:a5224eeb3546 |
---|---|
204 endfunction | 204 endfunction |
205 catch | 205 catch |
206 call assert_true(v:errmsg, v:exception) | 206 call assert_true(v:errmsg, v:exception) |
207 endtry | 207 endtry |
208 endfunc | 208 endfunc |
209 | |
210 func Test_bind_in_python() | |
211 if has('python') | |
212 let g:d = {} | |
213 function g:d.test2() | |
214 endfunction | |
215 python import vim | |
216 try | |
217 call assert_equal(pyeval('vim.bindeval("g:d.test2")'), g:d.test2) | |
218 catch | |
219 call assert_true(v:false, v:exception) | |
220 endtry | |
221 endif | |
222 endfunc |