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 26ec4cfdbea576a29648eac1443d3cc96051e6ee

Don't assume a Lua column is primary on error
If an internal Lua table isn't actually a table, return `0` instead of
`-1` because `vifm_viewcolumns_is_primary()` is returning a boolean
value.
Author: xaizek
Author date (UTC): 2026-04-11 13:31
Committer name: xaizek
Committer date (UTC): 2026-04-11 16:35
Parent(s): 0e62a4a70294b1408e63c9de2452ff2bd3b54e40
Signing key: 99DC5E4DB05F6BE2
Tree: f8fcb720d3ebd71dfac1af15991d927391ab264c
File Lines added Lines deleted
src/lua/vifm_viewcolumns.c 1 1
File src/lua/vifm_viewcolumns.c changed (mode: 100644) (index 1218e59d0..8c6b0b544)
... ... vifm_viewcolumns_is_primary(vlua_t *vlua, int column_id)
113 113 if(lua_geti(vlua->lua, -1, column_id) != LUA_TTABLE) if(lua_geti(vlua->lua, -1, column_id) != LUA_TTABLE)
114 114 { {
115 115 lua_pop(vlua->lua, 2); lua_pop(vlua->lua, 2);
116 return -1;
116 return 0;
117 117 } }
118 118
119 119 lua_getfield(vlua->lua, -1, "isprimary"); lua_getfield(vlua->lua, -1, "isprimary");
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