xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit a4620de4964aff0ba1c047b193fd78389b32a99f

Fix weird uses of GLUE_ENDS in lua/api_menus.c
Should have been GLUE_EQ() instead.
Author: xaizek
Author date (UTC): 2026-01-12 22:27
Committer name: xaizek
Committer date (UTC): 2026-01-13 15:29
Parent(s): b6d05deecc981ac94d8dd389421a512e09faa335
Signing key: 99DC5E4DB05F6BE2
Tree: 8d6d0078ae6d7781e59a63d6f7df0316c8f94a2f
File Lines added Lines deleted
tests/lua/api_menus.c 3 3
File tests/lua/api_menus.c changed (mode: 100644) (index a73c9a2e9..4c5cd1cf9)
... ... TEST(menus_loadcustom)
70 70 "print(vifm.menus.loadcustom { title = 't' })"); "print(vifm.menus.loadcustom { title = 't' })");
71 71
72 72 /* Empty items. */ /* Empty items. */
73 GLUA_ENDS(vlua, "false",
73 GLUA_EQ(vlua, "false",
74 74 "print(vifm.menus.loadcustom { title = 't', items = { } })"); "print(vifm.menus.loadcustom { title = 't', items = { } })");
75 75
76 76 /* Items of invalid type. */ /* Items of invalid type. */
 
... ... TEST(menus_loadcustom)
78 78 "print(vifm.menus.loadcustom({ title = 'title', items = { {} } }))"); "print(vifm.menus.loadcustom({ title = 'title', items = { {} } }))");
79 79
80 80 /* Non-navigatable menu. */ /* Non-navigatable menu. */
81 GLUA_ENDS(vlua, "true",
81 GLUA_EQ(vlua, "true",
82 82 "print(vifm.menus.loadcustom { title = 't', items = { 'a', 'b' } })"); "print(vifm.menus.loadcustom { title = 't', items = { 'a', 'b' } })");
83 83 assert_true(vle_mode_is(MENU_MODE)); assert_true(vle_mode_is(MENU_MODE));
84 84 assert_true(menus_get_view(menu_get_current()) == &lwin); assert_true(menus_get_view(menu_get_current()) == &lwin);
 
... ... TEST(menus_loadcustom)
86 86 assert_false(menu_get_current()->extra_data); assert_false(menu_get_current()->extra_data);
87 87
88 88 /* Navigatable menu. */ /* Navigatable menu. */
89 GLUA_ENDS(vlua, "true",
89 GLUA_EQ(vlua, "true",
90 90 "print(vifm.menus.loadcustom {" "print(vifm.menus.loadcustom {"
91 91 " title = 't'," " title = 't',"
92 92 " items = { 'aaa', 'b' }," " items = { 'aaa', 'b' },"
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master