Explicitly say that index is 0-based in python (1-based in Lua)
This commit is contained in:
parent
82b6aec4bd
commit
473f06bedf
@ -24,7 +24,7 @@ common_types = {
|
||||
|
||||
lua_types = dict(common_types)
|
||||
lua_types.update({
|
||||
'index': '<constant>index</constant>',
|
||||
'index': '<constant>integer index (1-based)</constant>',
|
||||
'value': '<constant>value</constant>',
|
||||
'gunichar': '<constant>string</constant>',
|
||||
'double': '<constant>number</constant>',
|
||||
@ -42,7 +42,7 @@ lua_types.update({
|
||||
|
||||
python_types = dict(common_types)
|
||||
python_types.update({
|
||||
'index': '<constant>int</constant>',
|
||||
'index': '<constant>integer index (0-based)</constant>',
|
||||
'gunichar': '<constant>str</constant>',
|
||||
'double': '<constant>float</constant>',
|
||||
'int': '<constant>int</constant>',
|
||||
|
@ -835,6 +835,8 @@ moo_edit_get_tab (MooEdit *doc)
|
||||
|
||||
/**
|
||||
* moo_edit_get_view:
|
||||
*
|
||||
* Get the active view of this document.
|
||||
**/
|
||||
MooEditView *
|
||||
moo_edit_get_view (MooEdit *doc)
|
||||
@ -850,6 +852,8 @@ moo_edit_get_view (MooEdit *doc)
|
||||
|
||||
/**
|
||||
* moo_edit_get_views:
|
||||
*
|
||||
* Get the list of views which belong to this document.
|
||||
**/
|
||||
MooEditViewArray *
|
||||
moo_edit_get_views (MooEdit *doc)
|
||||
@ -860,6 +864,8 @@ moo_edit_get_views (MooEdit *doc)
|
||||
|
||||
/**
|
||||
* moo_edit_get_n_views:
|
||||
*
|
||||
* Get the number of views which belong to this document.
|
||||
**/
|
||||
int
|
||||
moo_edit_get_n_views (MooEdit *doc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user