38
39
buf = doc_get_chars(doc,start,end);
39
40
utf8_offset_cache_reset();
44
44
if (i==0 || (buf[i]=='\n' && buf[i+1]!='\0')) {
46
46
cstart = utf8_byteoffset_to_charsoffset_cached(buf, i+1);
47
doc_replace_text_backend(doc, commentstring, coffset+cstart, coffset+cstart);
47
doc_replace_text_backend(doc, commentstring, coffset+start+cstart, coffset+start+cstart);
48
48
coffset += commentstring_len;
56
57
static void remove_line_comment(Tdocument *doc, const gchar *buf, const gchar *commentstring, gint start, gint end) {