summaryrefslogtreecommitdiff
path: root/src/analysis/line_comment.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/line_comment.c')
-rw-r--r--src/analysis/line_comment.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/analysis/line_comment.c b/src/analysis/line_comment.c
index 6df7b96..ea6d6d6 100644
--- a/src/analysis/line_comment.c
+++ b/src/analysis/line_comment.c
@@ -99,6 +99,13 @@ static void g_comment_line_class_init(GCommentLineClass *klass)
static void g_comment_line_init(GCommentLine *line)
{
+ GRenderingLine *parent; /* Instance parente */
+
+ parent = G_RENDERING_LINE(line);
+
+ parent->type = RLT_PROTOTYPE/* TODO */;
+
+ parent->refresh_markup = (refresh_markup_fc)g_comment_line_refresh_markup;
}
@@ -171,7 +178,7 @@ void g_comment_line_refresh_markup(GCommentLine *line)
G_RENDERING_LINE(line)->max_bin_len);
len += G_RENDERING_LINE(line)->max_bin_len;
- content[len] = '\0';
+ content[len - 1] = '\0';
}
@@ -231,6 +238,7 @@ GRenderingLine *g_comment_line_new(uint64_t offset, const char *comment, const d
G_RENDERING_LINE(result)->offset = offset;
result->comment = strdup(comment);
+ result->options = options;
return G_RENDERING_LINE(result);