On 2013-05-30 Thursday at 21:41 -0700 ZyX wrote: > > Patch 7.3.1044 adds the .valid field, but there still is no > > documentation for it. > > # HG changeset patch > # User ZyX <kp-...@ya.ru> > # Date 1369975224 -14400 > # Branch python-extended-4 > # Node ID b61c8091e716aaaa98a072a0106e550d05ae17e8 > # Parent bca5a13b9afd2d9b648c8239696753f663f09147 > Add missing documentation > > diff -r bca5a13b9afd -r b61c8091e716 runtime/doc/if_pyth.txt > --- a/runtime/doc/if_pyth.txt Fri May 31 06:59:29 2013 +0400 > +++ b/runtime/doc/if_pyth.txt Fri May 31 08:40:24 2013 +0400 > @@ -176,6 +176,10 @@ > |python-bindeval-objects|. These python objects let you modify (|List| > or |Dictionary|) or call (|Funcref|) vim objecs. > > +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 @@ > |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 . ^^^^^^^
s/becames/becomes/ > + corresponding buffer is wiped out. > > The buffer object methods are: > b.append(str) Append a line to the buffer > @@ -433,6 +439,8 @@ > 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 @@ > 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 . ^^^^^^^ -- Roland Eggner
pgp7mZX8NRJIE.pgp
Description: PGP signature