trethaller 6 年之前
父节点
当前提交
e6abe37d61
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>"));