patches

Patches for various other programs
git clone https://git.regexghost.com/patches.git
Log | Files | Refs | README

sxiv-print-index.diff (280B)


      1 diff --git a/commands.c b/commands.c
      2 index f685bc0..0c2be5a 100644
      3 --- a/commands.c
      4 +++ b/commands.c
      5 @@ -62,6 +62,9 @@ bool cg_quit(arg_t _)
      6  				printf("%s\n", files[i].name);
      7  		}
      8  	}
      9 +	if (options->to_stdout) {
     10 +		printf("index: %d\n", fileidx);
     11 +	}
     12  	exit(EXIT_SUCCESS);
     13  }
     14