From: Kevin Day Date: Thu, 5 Sep 2024 02:43:03 +0000 (-0500) Subject: Cleanup: Fix dead code. X-Git-Tag: 0.6.12~8 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=b4fc8cc255186b925042c927b79a6402f029c989;p=fll Cleanup: Fix dead code. The graph condition is always `0x1` when entering the block but inside it checks for `0x2`. Update the function to accept either `0x1` or `0x2`. --- diff --git a/level_1/fl_fss/c/fss/embedded_list.c b/level_1/fl_fss/c/fss/embedded_list.c index bcf90d0..48c7293 100644 --- a/level_1/fl_fss/c/fss/embedded_list.c +++ b/level_1/fl_fss/c/fss/embedded_list.c @@ -593,7 +593,7 @@ extern "C" { } } } - else if (graph_first == 0x1 && buffer.string[range->start] == f_fss_comment_s.string[0]) { + else if (buffer.string[range->start] == f_fss_comment_s.string[0] && (graph_first == 0x1 || graph_first == 0x2)) { // The newline_last is initialized to the range->start, which may not actually be a new line. position = (buffer.string[newline_last] == f_string_eol_s.string[0]) ? newline_last + 1 : newline_last;