Use + instead of | to break out of tab expansion in TabMap::sync

This commit is contained in:
Antonio Scandurra 2023-03-30 09:49:07 +02:00
parent ec5ffe9922
commit 79346b0706

View file

@ -97,7 +97,7 @@ impl TabMap {
offset_from_edit += chunk.text.len() as u32;
if old_end_column + offset_from_edit >= old_snapshot.max_expansion_column
&& new_end_column | offset_from_edit >= new_snapshot.max_expansion_column
&& new_end_column + offset_from_edit >= new_snapshot.max_expansion_column
{
break;
}