trethaller 6 years ago
parent
commit
e6abe37d61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/view/DomKit.hx

+ 1 - 1
hide/view/DomKit.hx

@@ -75,7 +75,7 @@ class DomKit extends FileView {
 			}
 			sheets.add(css);
 			for( w in parser.warnings )
-				warnings.push({ file : f, line : content.substr(0,w.end).split("\n").length+1, msg : w.msg });
+				warnings.push({ file : f, line : content.substr(0,w.pmin).split("\n").length+1, msg : w.msg });
 		}
 		var warns = element.find(".cssErrors");
 		warns.html([for( w in warnings ) w.file+":"+w.line+": "+StringTools.htmlEscape(w.msg)].join("<br>"));