Skip to content

Commit

Permalink
fix multiline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Oct 21, 2023
1 parent 3219110 commit da0c352
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ved.v
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ fn (mut ved Ved) draw_split(i int, split_from int) {
}
if view.hl_on {
// println('line="$s" nrtabs=$nr_tabs line_x=$line_x')
ved.draw_text_line(line_x, y, s)
ved.draw_text_line(line_x, y, s, os.file_ext(view.path))
} else {
ved.gg.draw_text(line_x, y, s, ved.cfg.txt_cfg)
}
Expand All @@ -634,8 +634,9 @@ fn (mut ved Ved) add_chunk(typ ChunkKind, start int, end int) {
ved.chunks << chunk
}

fn (mut ved Ved) draw_text_line(x int, y int, line string) {
mcomment := get_mcomment_by_ext(os.file_ext(ved.view.path))
fn (mut ved Ved) draw_text_line(x int, y int, line string, ext string) {
// mcomment := get_mcomment_by_ext(os.file_ext(ved.view.path))
mcomment := get_mcomment_by_ext(ext)
// Red/green test hack
/*
if line.contains('[32m') && line.contains('PASS') {
Expand Down

0 comments on commit da0c352

Please sign in to comment.