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 8081549038a8ed2f8015656119223c145044df3c

Update body of engine/parsing.c:eval_or_op()
Make it look similar to eval_and_op() for consistency.
Author: xaizek
Author date (UTC): 2024-10-15 12:09
Committer name: xaizek
Committer date (UTC): 2024-10-15 12:09
Parent(s): a1ce012682213c8a5437eb985f7c7484b3cd0a16
Signing key: 99DC5E4DB05F6BE2
Tree: f645973c22487aed3ce5dd396e993b36a02c52b6
File Lines added Lines deleted
src/engine/parsing.c 6 4
File src/engine/parsing.c changed (mode: 100644) (index 14778fe3f..9c8183155)
... ... eval_or_op(parse_context_t *ctx, int nops, expr_t ops[], var_t *result)
349 349 return 0; return 0;
350 350 } }
351 351
352 /* Conversion to integer so that strings are converted into numbers instead of
353 * checked to be empty. */
354 val = var_to_int(ops[0].value);
352 /* TODO: replace with var_to_bool() when it's OK to change semantics of
353 * strings by themselves. */
354 val = (var_to_int(ops[0].value) != 0);
355 355
356 356 for(i = 1; i < nops && !val; ++i) for(i = 1; i < nops && !val; ++i)
357 357 { {
 
... ... eval_or_op(parse_context_t *ctx, int nops, expr_t ops[], var_t *result)
359 359 { {
360 360 return 1; return 1;
361 361 } }
362 val |= var_to_int(ops[i].value);
362 /* TODO: replace with var_to_bool() when it's OK to change semantics of
363 * strings by themselves. */
364 val |= (var_to_int(ops[i].value) != 0);
363 365 } }
364 366
365 367 *result = var_from_bool(val); *result = var_from_bool(val);
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