diary

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

commit f22d3cf4a68156752702e049a94f48f3ef5c836c
parent e5c0ffd66f8a30a57ee7ca95802e807023cd4454
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun,  2 Jan 2022 01:11:30 +0100

fix(no_mouse): read from config file

Diffstat:
Msrc/diary.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/diary.c b/src/diary.c @@ -336,6 +336,10 @@ bool read_config(const char* file_path) { if (strcmp("1", value_buf) == 0 || strcmp("true", value_buf) == 0) { CONFIG.no_pty = true; } + } else if (strcmp("no_mouse", key_buf) == 0) { + if (strcmp("1", value_buf) == 0 || strcmp("true", value_buf) == 0) { + CONFIG.no_mouse = true; + } } else if (strcmp("editor", key_buf) == 0) { CONFIG.editor = (char *) malloc(strlen(value_buf) + 1 * sizeof(char)); strcpy(CONFIG.editor, value_buf);