From: Daniel Carl Date: Thu, 3 Oct 2013 18:11:57 +0000 (+0200) Subject: Don't remove whitespace from lines in config file. X-Git-Url: https://git.owens.tech/assets/static/dummy.html/assets/static/dummy.html/git?a=commitdiff_plain;h=5c6b54dded4a4bcfb7248e80fe5311ca4c4d0eef;p=vimb.git Don't remove whitespace from lines in config file. g_strstrip() removes leading and trailing whitespace from the lines in the config file. This behaviour is not desiderable for lines that use the input command. Thanks Leonardo Taccari for this patch. --- diff --git a/src/main.c b/src/main.c index 24d1863..e610f3d 100644 --- a/src/main.c +++ b/src/main.c @@ -792,7 +792,6 @@ static void read_config(void) int length = g_strv_length(lines) - 1; for (int i = 0; i < length; i++) { line = lines[i]; - g_strstrip(line); if (!g_ascii_isalpha(line[0])) { continue;