projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae1f47
)
Don't remove whitespace from lines in config file.
author
Daniel Carl
<danielcarl@gmx.de>
Thu, 3 Oct 2013 18:11:57 +0000
(20:11 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Thu, 3 Oct 2013 18:11:57 +0000
(20:11 +0200)
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.
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
24d1863
..
e610f3d
100644
(file)
--- 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;