X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2Fviewer.c;h=d1588d03dd24b1a881838505238b789ba612581d;hb=69352838d7b0be27074840a0d2d1e2cf294dcec3;hp=13874d87443dd50e0e5da6269a77bbc18ad552e1;hpb=7daedc8abf4e8b3d5a76f5169aba522e53eec2cc;p=smdp.git diff --git a/src/viewer.c b/src/viewer.c index 13874d8..d1588d0 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -577,8 +577,10 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo // IS_CODE if(CHECK_BIT(line->bits, IS_CODE)) { - // set static offset for code - offset = CODE_INDENT; + if (!CHECK_BIT(line->bits, IS_TILDE_CODE)) { + // set static offset for code + offset = CODE_INDENT; + } // reverse color for code blocks if(colors)