Skip to content

Commit 89ed4e4

Browse files
committed
fix: arch linux崩溃
1 parent 5ca14f2 commit 89ed4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wxss/css_tree_lib/css_syntax_tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace WXSS
3838
if (
3939
i
4040
&& cur->offset_164 > this->offset_120[i - 1]->offset_168
41-
&& a2[a2.length() - 1] != '\n'
41+
&& (a2.length() == 0 || a2[a2.length() - 1] != '\n')
4242
)
4343
{
4444
a2 += " ";

0 commit comments

Comments
 (0)