changeset 4700:0c25fa1dfd97 v7.3.1097

updated for version 7.3.1097 Problem: Python: a few recently added items are not documented. Solution: Update the documentation. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Sun, 02 Jun 2013 17:46:40 +0200
parents b74b5b7ec532
children df660cd6fac4
files runtime/doc/if_pyth.txt src/version.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -176,6 +176,10 @@ vim.bindeval(str)					*python-bindeval*
 	|python-bindeval-objects|. These python objects let you modify (|List| 
 	or |Dictionary|) or call (|Funcref|) vim objects.
 
+vim.strwidth(str)					*python-strwidth*
+	Like |strwidth()|: returns number of display cells str occupies, tab 
+	is counted as one cell.
+
 Error object of the "vim" module
 
 vim.error						*python-error*
@@ -329,6 +333,8 @@ The buffer object attributes are:
 			|BufFilePost| autocommands are launched.
 	b.number	Buffer number. Can be used as |python-buffers| key.
 			Read-only.
+	b.valid		True or False. Buffer object becames invalid when 
+			corresponding buffer is wiped out.
 
 The buffer object methods are:
 	b.append(str)	Append a line to the buffer
@@ -433,6 +439,8 @@ Window attributes are:
 	row, col (read-only)	On-screen window position in display cells.
 				First position is zero.
 	tabpage (read-only)	Window tab page.
+	valid (read-write)	True or False. Window object becames invalid 
+				when corresponding window is closed.
 
 The height attribute is writable only if the screen is split horizontally.
 The width attribute is writable only if the screen is split vertically.
@@ -456,6 +464,8 @@ Tab page attributes are:
 	windows		Like |python-windows|, but for current tab page.
 	vars		The tab page |t:| variables.
 	window		Current tabpage window.
+	valid		True or False. Tab page object becames invalid when 
+			corresponding tab page is closed.
 
 TabPage object type is available using "TabPage" attribute of vim module.
 
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1097,
+/**/
     1096,
 /**/
     1095,