diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit d74fed41e3885a05b704c677078d335558d08253
parent 81aae152b0fab610afa4446e6223b2a4dd242ecb
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Mon,  4 Jan 2021 00:03:54 +0100

reuse diary_dir config var for g/G

Diffstat:
Mdiary.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diary.c b/diary.c @@ -536,11 +536,11 @@ int main(int argc, char** argv) { // jump to top/bottom of page case 'g': - new_date = find_closest_entry(cal_start, false, diary_dir, diary_dir_size); + new_date = find_closest_entry(cal_start, false, CONFIG.diary_dir, diary_dir_size); mv_valid = go_to(cal, aside, mktime(&new_date), &pad_pos); break; case 'G': - new_date = find_closest_entry(cal_end, true, diary_dir, diary_dir_size); + new_date = find_closest_entry(cal_end, true, CONFIG.diary_dir, diary_dir_size); mv_valid = go_to(cal, aside, mktime(&new_date), &pad_pos); break;