> 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 + 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 + corresponding tab page is closed. TabPage object type is available using "TabPage" attribute of vim module. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
*** /tmp/extdiff.FsAeBu/vim.bca5a13b9afd/runtime/doc/if_pyth.txt 2013-05-31 08:41:00.399355461 +0400 --- vim.b61c8091e716/runtime/doc/if_pyth.txt 2013-05-31 08:41:00.410355355 +0400 *************** *** 176,181 **** --- 176,185 ---- |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,334 **** --- 333,340 ---- |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,438 **** --- 439,446 ---- 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,461 **** --- 464,471 ---- 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.