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 6dba6e85f9306688a44da5105971f7d774914aaf

Use standard "i" index instead of "y"
Author: xaizek
Author date (UTC): 2014-10-24 20:29
Committer name: xaizek
Committer date (UTC): 2014-10-24 20:29
Parent(s): 62481de98fa29dc9ceffe32307694566cd363046
Signing key:
Tree: 126586f4d70198fdc6729a03c028267b4c7a9272
File Lines added Lines deleted
src/color_scheme.c 7 7
File src/color_scheme.c changed (mode: 100644) (index 216e3b884..687cb6aac)
... ... write_color_scheme_file(void)
399 399 { {
400 400 FILE *fp; FILE *fp;
401 401 char colors_dir[PATH_MAX]; char colors_dir[PATH_MAX];
402 int y;
402 int i;
403 403
404 404 snprintf(colors_dir, sizeof(colors_dir), "%s/colors", cfg.config_dir); snprintf(colors_dir, sizeof(colors_dir), "%s/colors", cfg.config_dir);
405 405 if(make_dir(colors_dir, 0777) != 0) if(make_dir(colors_dir, 0777) != 0)
 
... ... write_color_scheme_file(void)
454 454
455 455 fprintf(fp, "\" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color\n\n"); fprintf(fp, "\" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color\n\n");
456 456
457 for(y = 0; y < MAXNUM_COLOR - 2; y++)
457 for(i = 0; i < MAXNUM_COLOR - 2; ++i)
458 458 { {
459 459 char fg_buf[16], bg_buf[16]; char fg_buf[16], bg_buf[16];
460 460
461 if(y == OTHER_LINE_COLOR)
461 if(i == OTHER_LINE_COLOR)
462 462 { {
463 463 /* Skip OtherLine as there is no way to express defaults. */ /* Skip OtherLine as there is no way to express defaults. */
464 464 continue; continue;
465 465 } }
466 466
467 color_to_str(cfg.cs.color[y].fg, sizeof(fg_buf), fg_buf);
468 color_to_str(cfg.cs.color[y].bg, sizeof(bg_buf), bg_buf);
467 color_to_str(cfg.cs.color[i].fg, sizeof(fg_buf), fg_buf);
468 color_to_str(cfg.cs.color[i].bg, sizeof(bg_buf), bg_buf);
469 469
470 fprintf(fp, "highlight %s cterm=%s ctermfg=%s ctermbg=%s\n", HI_GROUPS[y],
471 attrs_to_str(cfg.cs.color[y].attr), fg_buf, bg_buf);
470 fprintf(fp, "highlight %s cterm=%s ctermfg=%s ctermbg=%s\n", HI_GROUPS[i],
471 attrs_to_str(cfg.cs.color[i].attr), fg_buf, bg_buf);
472 472 } }
473 473
474 474 fclose(fp); fclose(fp);
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