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 b91e8b1c8025d1bc819af799f10b7dbec5907c73

Fix a small memory leak on `:map no-matching-keys`
Author: xaizek
Author date (UTC): 2025-08-21 08:52
Committer name: xaizek
Committer date (UTC): 2025-08-21 08:52
Parent(s): b6f1b0b990ff917465248c695ce5120725fae640
Signing key: 99DC5E4DB05F6BE2
Tree: 0b71238dcd526dcfdfec2586d78ca896998b4ff7
File Lines added Lines deleted
ChangeLog 3 0
src/menus/map_menu.c 1 2
tests/menus/map.c 7 0
File ChangeLog changed (mode: 100644) (index adf6e6a43..05801b06e)
144 144 Fixed weird delays in FUSE when running an AppImage caused by a trailing Fixed weird delays in FUSE when running an AppImage caused by a trailing
145 145 colon in $LD_LIBRARY_PATH. Thanks to qadzek. colon in $LD_LIBRARY_PATH. Thanks to qadzek.
146 146
147 Fixed a small memory leak on trying to display a map menu which doesn't
148 show up because it would be empty.
149
147 150 0.14-beta to 0.14 (2025-02-08) 0.14-beta to 0.14 (2025-02-08)
148 151
149 152 Improved documentation on zh/zl menu keys a bit. Improved documentation on zh/zl menu keys a bit.
File src/menus/map_menu.c changed (mode: 100644) (index 7a65f91e7..3341c086e)
... ... show_map_menu(view_t *view, const char mode_str[], int mode,
74 74 * menu. */ * menu. */
75 75 if(m.len == 3) if(m.len == 3)
76 76 { {
77 free(m.items[0]);
78 free(m.items);
77 free_string_array(m.items, m.len);
79 78 m.items = NULL; m.items = NULL;
80 79 m.len = 0; m.len = 0;
81 80 } }
File tests/menus/map.c changed (mode: 100644) (index f76b0975b..687ccdbe3)
... ... TEARDOWN()
39 39 curr_stats.load_stage = 0; curr_stats.load_stage = 0;
40 40 } }
41 41
42 TEST(no_menu_if_no_matches)
43 {
44 ui_sb_msg("");
45 assert_failure(cmds_dispatch("nmap nothing", &lwin, CIT_COMMAND));
46 assert_string_equal("No mappings found", ui_sb_last());
47 }
48
42 49 TEST(nop_rhs_is_displayed) TEST(nop_rhs_is_displayed)
43 50 { {
44 51 assert_success(cmds_dispatch("nmap lhs <nop>", &lwin, CIT_COMMAND)); assert_success(cmds_dispatch("nmap lhs <nop>", &lwin, CIT_COMMAND));
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