diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-08-18 12:27:22 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-08-18 12:27:22 +0200 |
commit | 0a2c4d20fe49c504b5bbb383afc97db340814bba (patch) | |
tree | d5853c4f0c9a13f95ceb35442acfc3456975d1f2 /src/io.c | |
parent | f3fe3c818cf277a547024492abd90c155dab1cd4 (diff) | |
download | calcurse-0a2c4d20fe49c504b5bbb383afc97db340814bba.zip |
Retain comments in descriptions and config values
Comments should only be stripped if they start at the beginning of a
line. We do not want to chop off an TODO item description or a
configuration value.
Reported-by: HÃ¥kan Jerning <jerning@home.se>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -274,7 +274,7 @@ void io_extract_data(char *dst_data, const char *org, int len) for (; *org == ' ' || *org == '\t'; org++) ; for (i = 0; i < len - 1; i++) { - if (*org == '\n' || *org == '\0' || *org == '#') + if (*org == '\n' || *org == '\0') break; *dst_data++ = *org++; } |