Browse Source

Merge branch 'master' of https://github.com/Mango0x45/Odin into pr/3744

Jeroen van Rijn 1 year ago
parent
commit
c9c7d3270d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/error.cpp

+ 1 - 2
src/error.cpp

@@ -352,8 +352,7 @@ gb_internal isize show_error_on_line(TokenPos const &pos, TokenPos end) {
 					rune_width = cast(i32)utf8proc_iterate((u8 const *)line_text + off, line_len - off, &rune);
 					rune_width = cast(i32)utf8proc_iterate((u8 const *)line_text + off, line_len - off, &rune);
 					columns += utf8proc_charwidth(rune);
 					columns += utf8proc_charwidth(rune);
 				}
 				}
-
-				for (i32 i = 0; i < columns - 1; i++) {
+				for (i32 i = 1; i < columns; i++) {
 					error_out("~");
 					error_out("~");
 				}
 				}
 				if (columns > 0 && squiggle_extra == 0) {
 				if (columns > 0 && squiggle_extra == 0) {