From 9e822c00b1fdf3e0604dbb520f593d8de6c15098 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 29 May 2013 22:15:30 +0200 Subject: updated for version 7.3.1044 Problem: Python: No {Buffer,TabPage,Window}.valid attributes. Solution: Python patch 5: add .valid (ZyX) --- src/testdir/test87.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/testdir/test87.in') diff --git a/src/testdir/test87.in b/src/testdir/test87.in index a23cadc29..8f70fcf90 100644 --- a/src/testdir/test87.in +++ b/src/testdir/test87.in @@ -500,6 +500,7 @@ for _b in vim.buffers: if _b is not cb: vim.command('bwipeout! ' + str(_b.number)) del _b +cb.append('valid: b:%s, cb:%s' % (repr(b.valid), repr(cb.valid))) for expr in ('b[1]','b[:] = ["A", "B"]','b[:]','b.append("abc")'): try: exec(expr) @@ -641,9 +642,13 @@ cb.append('Current tab page: ' + repr(vim.current.tabpage)) cb.append('Current window: ' + repr(vim.current.window)) cb.append('Current buffer: ' + repr(vim.current.buffer)) cb.append('Current line: ' + repr(vim.current.line)) +ws = list(vim.windows) +ts = list(vim.tabpages) for b in vim.buffers: if b is not cb: vim.command('bwipeout! ' + str(b.number)) +cb.append('w.valid: ' + repr([w.valid for w in ws])) +cb.append('t.valid: ' + repr([t.valid for t in ts])) EOF :tabonly! :only! -- cgit v1.2.3