0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.3.1097

Problem:    Python: a few recently added items are not documented.
Solution:   Update the documentation. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-06-02 17:46:40 +02:00
parent de71b5658f
commit bc41196bdc
2 changed files with 12 additions and 0 deletions

View File

@@ -176,6 +176,10 @@ vim.bindeval(str) *python-bindeval*
|python-bindeval-objects|. These python objects let you modify (|List| |python-bindeval-objects|. These python objects let you modify (|List|
or |Dictionary|) or call (|Funcref|) vim objects. 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 Error object of the "vim" module
vim.error *python-error* vim.error *python-error*
@@ -329,6 +333,8 @@ The buffer object attributes are:
|BufFilePost| autocommands are launched. |BufFilePost| autocommands are launched.
b.number Buffer number. Can be used as |python-buffers| key. b.number Buffer number. Can be used as |python-buffers| key.
Read-only. Read-only.
b.valid True or False. Buffer object becames invalid when
corresponding buffer is wiped out.
The buffer object methods are: The buffer object methods are:
b.append(str) Append a line to the buffer 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. row, col (read-only) On-screen window position in display cells.
First position is zero. First position is zero.
tabpage (read-only) Window tab page. 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 height attribute is writable only if the screen is split horizontally.
The width attribute is writable only if the screen is split vertically. 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. windows Like |python-windows|, but for current tab page.
vars The tab page |t:| variables. vars The tab page |t:| variables.
window Current tabpage window. 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. TabPage object type is available using "TabPage" attribute of vim module.

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1097,
/**/ /**/
1096, 1096,
/**/ /**/