summaryrefslogtreecommitdiff
path: root/src/testdir/test87.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-05-21 22:23:56 +0200
committerBram Moolenaar <Bram@vim.org>2013-05-21 22:23:56 +0200
commit2a0f3d3fb2a7e26d47810098894f8e615571afe3 (patch)
treee402ca98134661b2a3f133083adf18bdc66151b6 /src/testdir/test87.in
parent0b9aecc3a5020a3f3714bf4e58046321b46632fb (diff)
downloadvim-git-2a0f3d3fb2a7e26d47810098894f8e615571afe3.tar.gz
updated for version 7.3.1003v7.3.1003
Problem: Python interface does not compile with Python 2.2 Solution: Fix thread issues and True/False. (ZyX)
Diffstat (limited to 'src/testdir/test87.in')
-rw-r--r--src/testdir/test87.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/testdir/test87.in b/src/testdir/test87.in
index 69af02eec..95ae0274f 100644
--- a/src/testdir/test87.in
+++ b/src/testdir/test87.in
@@ -561,18 +561,26 @@ EOF
:vnew b.2
:vnew c.2
py3 << EOF
+cb.append('Number of tabs: ' + str(len(vim.tabpages)))
+cb.append('Current tab pages:')
+
def W(w):
if '(unknown)' in repr(w):
return '<window object (unknown)>'
else:
return repr(w)
-cb.append('Number of tabs: ' + str(len(vim.tabpages)))
-cb.append('Current tab pages:')
+
+def Cursor(w, start=len(cb)):
+ if w.buffer is cb:
+ return repr((start - w.cursor[0], w.cursor[1]))
+ else:
+ return repr(w.cursor)
+
for t in vim.tabpages:
cb.append(' ' + repr(t) + '(' + str(t.number) + ')' + ': ' + str(len(t.windows)) + ' windows, current is ' + W(t.window))
cb.append(' Windows:')
for w in t.windows:
- cb.append(' ' + W(w) + '(' + str(w.number) + ')' + ': displays buffer ' + repr(w.buffer) + '; cursor is at ' + repr(w.cursor))
+ cb.append(' ' + W(w) + '(' + str(w.number) + ')' + ': displays buffer ' + repr(w.buffer) + '; cursor is at ' + Cursor(w))
# Other values depend on the size of the terminal, so they are checked partly:
for attr in ('height', 'row', 'width', 'col'):
try: