X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=blobdiff_plain;f=src%2Fviewer.c;h=0021e794dfc1ae0de32f38e5fb46c727ca5fc441;hp=13874d87443dd50e0e5da6269a77bbc18ad552e1;hb=3e6d7001c4058b93281645e72ad1e223280b8589;hpb=441b424160ccf92f27828c5f4c42b9276f65f076 diff --git a/src/viewer.c b/src/viewer.c index 13874d8..0021e79 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)