| File ChangeLog.LuaAPI changed (mode: 100644) (index 464fc45de..6dd87cff8) |
| ... |
... |
documented in the regular ChangeLog. |
| 12 |
12 |
Fixed a crash on passing a value that's not convertible to a string to |
Fixed a crash on passing a value that's not convertible to a string to |
| 13 |
13 |
VifmView:loadcustom(). |
VifmView:loadcustom(). |
| 14 |
14 |
|
|
|
15 |
|
Fixed a crash on passing a value that's not convertible to a string to |
|
16 |
|
vifm.menus.loadcustom(). Thanks to PRESFIL. Patch by Kirill Rekhov. |
|
17 |
|
|
| 15 |
18 |
0.13 to 0.14-beta (2025-01-19) |
0.13 to 0.14-beta (2025-01-19) |
| 16 |
19 |
|
|
| 17 |
20 |
Bumped API version to v0.2.0. |
Bumped API version to v0.2.0. |
| File data/vim/doc/app/vifm-lua.txt changed (mode: 100644) (index e6c365ebd..ff8028a5b) |
| ... |
... |
Parameters:~ |
| 1123 |
1123 |
{menu} Table with information about the custom view. |
{menu} Table with information about the custom view. |
| 1124 |
1124 |
|
|
| 1125 |
1125 |
Return:~ |
Return:~ |
| 1126 |
|
`false` if the list of items is empty or if {menu}.view doesn't refer to the |
|
| 1127 |
|
the view as `vifm.currview()` or `vifm.otherview()`. |
|
|
1126 |
|
`false` if the list of items is empty, one of the items can't be converted |
|
1127 |
|
to a string or if {menu}.view doesn't refer to the the view as |
|
1128 |
|
`vifm.currview()` or `vifm.otherview()`. |
| 1128 |
1129 |
`true` on success. |
`true` on success. |
| 1129 |
1130 |
|
|
| 1130 |
1131 |
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
| File tests/lua/api_menus.c changed (mode: 100644) (index fed6c6049..a73c9a2e9) |
| ... |
... |
TEST(menus_loadcustom) |
| 73 |
73 |
GLUA_ENDS(vlua, "false", |
GLUA_ENDS(vlua, "false", |
| 74 |
74 |
"print(vifm.menus.loadcustom { title = 't', items = { } })"); |
"print(vifm.menus.loadcustom { title = 't', items = { } })"); |
| 75 |
75 |
|
|
|
76 |
|
/* Items of invalid type. */ |
|
77 |
|
GLUA_EQ(vlua, "false", |
|
78 |
|
"print(vifm.menus.loadcustom({ title = 'title', items = { {} } }))"); |
|
79 |
|
|
| 76 |
80 |
/* Non-navigatable menu. */ |
/* Non-navigatable menu. */ |
| 77 |
81 |
GLUA_ENDS(vlua, "true", |
GLUA_ENDS(vlua, "true", |
| 78 |
82 |
"print(vifm.menus.loadcustom { title = 't', items = { 'a', 'b' } })"); |
"print(vifm.menus.loadcustom { title = 't', items = { 'a', 'b' } })"); |